Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rafayghafoor/test trigger #604

Open
wants to merge 222 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
222 commits
Select commit Hold shift + click to select a range
d948267
fix: clarify grade range numerical values
kaustavb12 Sep 26, 2023
42ca0dd
chore: remove bok choy settings
salman2013 Sep 27, 2023
73c4e11
chore: remove karma
salman2013 Sep 27, 2023
a06ac2f
chore: remove karma
salman2013 Sep 27, 2023
caeb8d9
chore: remove bok choy
salman2013 Sep 27, 2023
3abf597
chore: fix test cases
salman2013 Sep 27, 2023
74ff28c
Merge remote-tracking branch 'upstream/master' into salman/remove-bok…
salman2013 Sep 27, 2023
9fb6d0a
Merge remote-tracking branch 'upstream/master' into salman/remove-bok…
salman2013 Sep 27, 2023
3d893a5
chore: remove bok-choy
salman2013 Sep 27, 2023
0370f44
chore: fix test cases
salman2013 Sep 27, 2023
875de8e
chore: fix test cases
salman2013 Sep 28, 2023
a763287
chore: remove all reference for bok-choy
salman2013 Sep 28, 2023
7e58e28
Merge remote-tracking branch 'upstream/master' into salman/remove-bok…
salman2013 Sep 28, 2023
3fc454c
chore: remove bok-choy
salman2013 Sep 28, 2023
3ecf2b9
chore: remove bok-choy
salman2013 Sep 28, 2023
d668af2
chore: fix comments, remove and add some code for karma
salman2013 Oct 2, 2023
74a4c88
chore: fix tests
salman2013 Oct 2, 2023
75244b1
Merge remote-tracking branch 'upstream/master' into salman/remove-bok…
salman2013 Oct 2, 2023
6831451
feat: Update the minimum password length.
feanil Sep 28, 2023
ae42b09
test: Fix validation tests.
feanil Sep 28, 2023
65d3b10
chore: fix test cases
salman2013 Oct 2, 2023
4dbefe3
chore: fix tests
salman2013 Oct 3, 2023
70eafef
chore: fixed comments as per review, code improvements
salman2013 Oct 4, 2023
2b6a6f8
chore: remove plugin which is not using
salman2013 Oct 4, 2023
52860c5
chore: resolve conflicts
salman2013 Oct 4, 2023
936a6c0
chore: resolve conflicts
salman2013 Oct 4, 2023
01a4908
chore: fix tests
salman2013 Oct 4, 2023
a71ce9f
Merge branch 'master' into salman/remove-bok-choy
salman2013 Oct 4, 2023
5bc3dfa
chore: uncomment the code
salman2013 Oct 6, 2023
cda018e
chore: fix test case
salman2013 Oct 6, 2023
7049cb2
chore: fix test case
salman2013 Oct 6, 2023
8dddb53
chore: fix test case
salman2013 Oct 6, 2023
9d54325
chore: fix test case
salman2013 Oct 6, 2023
2d78b2d
chore: fix test case
salman2013 Oct 6, 2023
52aea35
chore: fix test case
salman2013 Oct 9, 2023
cdeaaa5
chore: fix test case
salman2013 Oct 9, 2023
8bd5be2
chore: fix test case
salman2013 Oct 9, 2023
8f97ac9
chore: fix test case
salman2013 Oct 10, 2023
1e2ea85
test: Update more tests that had short passwords.
feanil Sep 29, 2023
ff17e51
refactor: remove xblockutils package
farhan Oct 11, 2023
23a44b9
chore: Upgrade python requirements
farhan Oct 11, 2023
4a640fe
chore: update drf endpoints to use default authentication
salman2013 Oct 12, 2023
5bbc17f
chore: fix test case
salman2013 Oct 12, 2023
571cc3b
feat: Upgrade Python dependency edx-enterprise
muhammad-ammar Oct 12, 2023
960dcfb
Merge pull request #33480 from openedx/muhammad-ammar/upgrade-edx-ent…
muhammad-ammar Oct 12, 2023
f2bf289
chore: test cases
salman2013 Oct 12, 2023
0d5ca66
Merge remote-tracking branch 'upstream/master' into salman/update-drf…
salman2013 Oct 12, 2023
84f7fdf
build(deps): bump actions/setup-node from 2 to 3 (#32140)
dependabot[bot] Oct 12, 2023
1ab9079
Merge pull request #33465 from farhan/farhan/remove-xblockutils
Oct 12, 2023
9e816e9
build(deps): bump actions/download-artifact from 2 to 3
dependabot[bot] Oct 12, 2023
f2db835
build(deps): bump aws-actions/configure-aws-credentials from 3 to 4
dependabot[bot] Oct 12, 2023
6e3f385
build(deps): bump aws-actions/configure-aws-credentials from 1 to 2
dependabot[bot] Oct 12, 2023
41eee89
Merge pull request #32363 from openedx/dependabot/github_actions/acti…
Oct 12, 2023
64e91d4
test: Update to an even longer password.
feanil Oct 11, 2023
1262567
Merge pull request #33479 from salman2013/salman/update-drf-endpoints
Oct 12, 2023
b7286d7
Merge pull request #33274 from openedx/dependabot/github_actions/aws-…
Oct 12, 2023
2a4ce5f
chore: fix comments, remove un-used variable
salman2013 Oct 12, 2023
2033dcf
fix: ref mgmt cmd logging (#33481)
rayzhou-bit Oct 12, 2023
4acd6c2
chore: updated version of notifications pref (#33486)
AhtishamShahid Oct 13, 2023
90b0392
feat: added audit track expiry filter in notifications (#33381)
AhtishamShahid Oct 13, 2023
bef05ab
feat: add tracking event for following post
Oct 4, 2023
7c25c5f
feat: command to backfill users email addresses on braze (#33467)
syedsajjadkazmii Oct 16, 2023
fd86ba1
Merge pull request #33343 from open-craft/kaustav/clarify_grade_range…
jristau1984 Oct 16, 2023
838d270
fix: users with derived roles should see their courses
0x29a Aug 13, 2023
a45901e
feat: implement strict_role_checking context manager
0x29a Sep 18, 2023
7f84f1f
chore(i18n): update translations (#33492)
Oct 16, 2023
24b6b5a
feat: Upgrade Python dependency edx-enterprise
alex-sheehan-edx Oct 13, 2023
e3851ab
test: Update to reuse variables in more places.
feanil Oct 16, 2023
388fa3b
Merge pull request #33489 from openedx/alex-sheehan-edx/upgrade-edx-e…
alex-sheehan-edx Oct 16, 2023
9e56a18
refactor: better permission names for instructor endpoints
0x29a Sep 14, 2023
80a25bc
feat: use new event_bus_producer_config (#33458)
Oct 16, 2023
755fa7f
feat: set course for wiki based on the wiki_slug
Cup0fCoffee Sep 25, 2023
6b082c7
Merge pull request #33275 from open-craft/0x29a/bb7834/inherited-role…
Agrendalath Oct 16, 2023
9bf042b
* feat: Enforce type hints for content_tagging app in edx-platform (#…
pkulkark Oct 16, 2023
bbb7ef8
feat: override permissions for exporting a taxonomy (#33483)
rpenido Oct 16, 2023
febcccc
fix: limited staff cohorts and gradebook access
0x29a Oct 15, 2023
52302e3
feat: Upgrade Python dependency edx-drf-extensions (#33512)
github-actions[bot] Oct 16, 2023
265e7d5
feat: Upgrade Python dependency edx-enterprise
hamzawaleed01 Oct 17, 2023
56436e1
Merge pull request #33515 from openedx/hamzawaleed01/upgrade-edx-ente…
hamzawaleed01 Oct 17, 2023
bf6ed5e
fix: reset button becomes available after submission (#33490)
RafayGhafoor Oct 17, 2023
7202c22
Merge pull request #33373 from openedx/feanil/update_password_length_…
Oct 17, 2023
70d547d
feat: Upgrade Python dependency edx-enterprise
alex-sheehan-edx Oct 17, 2023
9f8bd36
feat: remove deprecated coaching from edx-platform
deborahgu Oct 17, 2023
7ef8650
Merge pull request #33524 from openedx/alex-sheehan-edx/upgrade-edx-e…
alex-sheehan-edx Oct 17, 2023
f728222
Merge branch 'master' into dkaplan1/APER-2407_remove-coaching-functio…
deborahgu Oct 17, 2023
92731be
Replace pyjwkest with pyjwt (#32270)
mumarkhan999 Oct 18, 2023
5c3237c
Merge branch 'master' into dkaplan1/APER-2407_remove-coaching-functio…
deborahgu Oct 18, 2023
b2f2e22
feat: remove deprecated coaching
deborahgu Oct 18, 2023
3060004
feat: removing deprecated coaching
deborahgu Oct 18, 2023
0b3e4d7
feat!: Removed Badges App
thezaeemaanwar Sep 5, 2023
44a04a5
chore(i18n): update translations
Oct 18, 2023
443753d
build: Only build and push ci-runner Docker image on origin repo (#33…
timmc-edx Oct 18, 2023
e1bad75
chore: geoip2: update maxmind geolite country database
Oct 18, 2023
08f5e7e
feat: Account and profile MFE legacy removal - redeployment (#31893)
abdullahwaheed Oct 19, 2023
caf8e45
Revert "feat: Account and profile MFE legacy removal - redeployment …
abdullahwaheed Oct 19, 2023
98e8bf8
Merge pull request #32137 from openedx/dependabot/github_actions/aws-…
Oct 19, 2023
9c6e765
test: run ./xmodule/ tests with CMS settings (#33534)
kdmccormick Oct 19, 2023
e3a1cb0
Merge pull request #33530 from openedx/dkaplan1/APER-2407_remove-coac…
deborahgu Oct 19, 2023
1d58bd1
feat: New link on studio home to Taxonomy list (if waffle flag set) (…
ChrisChV Oct 19, 2023
2482dd4
feat: more detailed taxonomies permission rules (#33413)
rpenido Oct 19, 2023
db4911b
chore: rename Files & Uploads page (#33546)
jesperhodge Oct 19, 2023
4af2f5b
feat: Upgrade Python dependency edx-enterprise
justEhmadSaeed Oct 20, 2023
c597303
Merge pull request #33549 from openedx/justEhmadSaeed/upgrade-edx-ent…
justEhmadSaeed Oct 20, 2023
c3a24c1
fix: rename update cache functions to what they are
ashultz0 Oct 20, 2023
2e75ced
Merge pull request #33186 from thezaeemaanwar/remove_badges_app
Oct 20, 2023
09a6523
docs: decision to standardize django/djangojs po files (#32994)
OmarIthawi Oct 20, 2023
7900711
chore(i18n): update translations
Oct 22, 2023
9452cef
chore: resolve conflicts
salman2013 Oct 23, 2023
2ff9ca8
chore: fix comments, remove un-used selenium browser
salman2013 Oct 23, 2023
e932373
fix: updated , notification config name from filter to filters (#33557)
AhtishamShahid Oct 23, 2023
7770e51
Merge pull request #33550 from openedx/ashultz0/rename_second_update_…
ashultz0 Oct 23, 2023
b917e62
fix: Use Open edX as a noun on the default Open edX homepage
sarina Oct 19, 2023
08d6607
feat: Add url that exposes taxonomy tags CRUD API (#33525)
yusuf-musleh Oct 23, 2023
98fe27f
Merge pull request #33547 from openedx/sarina/itworks
sarina Oct 23, 2023
8d7e451
Merge remote-tracking branch 'upstream/master' into salman/remove-bok…
salman2013 Oct 24, 2023
e2560e1
chore: fix tests
salman2013 Oct 24, 2023
07ae24a
feat: added sender_id to notification generated events (#33544)
muhammadadeeltajamul Oct 24, 2023
5009d05
chore: added debug logs to notifications filters (#33568)
AhtishamShahid Oct 24, 2023
ca2f24a
feat: Upgrade Python dependency edx-enterprise
justEhmadSaeed Oct 24, 2023
c41db87
Merge pull request #33570 from openedx/justEhmadSaeed/upgrade-edx-ent…
justEhmadSaeed Oct 24, 2023
b0a004d
docs: add pytest django setting specification to docs (#33564)
connorhaugh Oct 24, 2023
d18bf2c
chore: Update actions/upload-artifact from v2 to v3 (#33580)
timmc-edx Oct 24, 2023
5b46937
chore: update connect_timeout for memcache server (#33594)
mumarkhan999 Oct 25, 2023
086834a
docs: design for atlas pull for the edx-platform and its plugins (#33…
OmarIthawi Oct 25, 2023
e2095bd
feat: Upgrade Python dependency edx-enterprise
alex-sheehan-edx Oct 25, 2023
d14d9ea
Merge pull request #33595 from openedx/alex-sheehan-edx/upgrade-edx-e…
alex-sheehan-edx Oct 25, 2023
216f8df
feat: Migrations for badges deletion
thezaeemaanwar Oct 24, 2023
e024d2b
chore: geoip2: update maxmind geolite country database
Oct 25, 2023
808390a
fix: sender list was empty in notification generated event (#33590)
muhammadadeeltajamul Oct 26, 2023
942e713
chore: resolve conflicts
salman2013 Oct 26, 2023
3bda3be
feat: Add display_name filtering in GET assets/:course
mavidser Oct 15, 2023
fadc961
docs: fix old course_id arg description to modern(2015) usage
ashultz0 Oct 17, 2023
2fde582
docs: remove TODO which asks a question where the answer is no
ashultz0 Oct 17, 2023
ad90c05
fix: remove unused and untested function
ashultz0 Oct 17, 2023
35eb8c6
Merge pull request #33551 from openedx/ashultz0/course_enrollment_clean
ashultz0 Oct 26, 2023
e5b7e3e
build: nudge devs about Quince release in github
cmltaWt0 Oct 11, 2023
f71e650
chore: update bok-choy hostname and revert the old logic to chose bro…
salman2013 Oct 27, 2023
3c50f3e
fix: update CourseOverviewTab while changing discussions settings (#3…
AhtishamShahid Oct 27, 2023
8cfd04f
feat: add drf for studio video page (#33528)
KristinAoki Oct 27, 2023
e6e124b
chore: tagging - version bump to latest openedx-learning (#33553)
bradenmacdonald Oct 27, 2023
ba1f382
feat: Add scope user_id to JWT payload (#33455)
moeez96 Oct 30, 2023
de935e1
chore: update variable for frontend test server hostname
salman2013 Oct 30, 2023
99b6f6b
chore: geoip2: update maxmind geolite country database
Oct 30, 2023
9e65024
feat: emit signal for thread, response, and comment created events (#…
Ian2012 Oct 30, 2023
9649e55
fix: Absent message after submiting "Generate Exception Certificates"…
Lunyachek Mar 11, 2023
a978452
chore: update lms,cms port variable names
salman2013 Oct 31, 2023
3003abb
Merge pull request #33350 from salman2013/salman/remove-bok-choy
Oct 31, 2023
0632041
docs: Update the security e-mail address.
feanil Oct 23, 2023
eec67f4
test: modify dockerfile to test environment variables (#33629)
alangsto Oct 31, 2023
083ccbf
Revert "chore: remove bok-choy settings"
robrap Oct 31, 2023
2f49af3
Merge pull request #33630 from openedx/revert-33350-salman/remove-bok…
robrap Oct 31, 2023
66c5be8
chore: ignore default_app_config warning
DanielVZ96 Oct 25, 2023
d2f427a
chore: ignore HTTPResponse.getheaders() deprecation warning
DanielVZ96 Oct 25, 2023
ef0a9c0
chore: ignore import ABCs from 'collections' warning
DanielVZ96 Oct 25, 2023
72be481
chore: replace newrelic add_custom_parameter deprecated method
DanielVZ96 Oct 25, 2023
115c65a
fix: flags not at the start of the expression
DanielVZ96 Oct 25, 2023
9752da2
chore: ignore warning from pkg_resources.declare_namespace
DanielVZ96 Oct 25, 2023
398c84e
chore: ignore 'etree' is deprecated
DanielVZ96 Nov 1, 2023
44b62ca
fix: notification audience was not filtering users with no preference…
muhammadadeeltajamul Nov 1, 2023
4f1503f
Merge branch 'master' into dvz/clean-warnings
Mashal-m Nov 1, 2023
55442ec
feat: add enterprise customer related setting
muhammad-ammar Nov 1, 2023
0301bda
Merge pull request #33635 from openedx/ammar/add-vsf-enterprise-uuid-…
muhammad-ammar Nov 1, 2023
fa14382
feat: Upgrade Python dependency openedx-events (#33637)
github-actions[bot] Nov 1, 2023
b9ee4a9
test: remove echoes in dockerfile (#33639)
alangsto Nov 1, 2023
7af2b1d
feat!: Add JwtAuthentication as a default DRF auth class.
feanil Jul 20, 2023
ac2cc15
test: Update tests to the new return code.
feanil Jul 26, 2023
763b102
fix: [AXIM-50] Fix count items in pagination
Sep 12, 2023
258f3fc
fix: [FC-0031] Add limit the number of returned results for mobile_se…
KyryloKireiev Nov 1, 2023
66e9879
Revert "Revert "chore: remove bok-choy settings""
feanil Nov 1, 2023
825503a
fix: Remove call to print_devstack_warnings
feanil Nov 1, 2023
212b8fc
chore: Update edx-enterprise to 4.6.10
macdiesel Nov 1, 2023
d604ce6
Merge branch 'master' into bbeggs/version_enterrpise
macdiesel Nov 1, 2023
be4aa3f
Merge pull request #33638 from openedx/bbeggs/version_enterrpise
macdiesel Nov 1, 2023
4860ef8
chore: geoip2: update maxmind geolite country database
Nov 1, 2023
f16414e
Merge pull request #33641 from openedx/revert-33630-revert-33350-salm…
Nov 2, 2023
9ba9935
Merge pull request #32802 from openedx/feanil/default_drf_auth_class
Nov 2, 2023
ddabba4
feat: remove manual sends of events (#33642)
Nov 3, 2023
5d6e925
feat: TNL-11173 Authoring API is v0 for now (#33644)
bszabo Nov 3, 2023
2cf4d73
Merge pull request #33601 from DanielVZ96/dvz/clean-warnings
Agrendalath Nov 6, 2023
e51c01b
feat: add support for user feedback on autogenerated transcripts (#33…
Rodra Nov 6, 2023
5d25733
feat: Upgrade Python dependency edx-enterprise
alex-sheehan-edx Nov 6, 2023
89c8f21
Merge pull request #33657 from openedx/alex-sheehan-edx/upgrade-edx-e…
alex-sheehan-edx Nov 6, 2023
edcadc9
feat: Upgrade Python dependency edx-enterprise
hamzawaleed01 Nov 6, 2023
2918605
Merge branch 'master' into hamzawaleed01/upgrade-edx-enterprise-e51c01b
hamzawaleed01 Nov 6, 2023
0c87bc3
feat: Upgrade Python dependency edx-drf-extensions
robrap Nov 6, 2023
e0f6cba
Merge pull request #33659 from openedx/hamzawaleed01/upgrade-edx-ente…
hamzawaleed01 Nov 6, 2023
cc8ee59
Merge branch 'master' into robrap/upgrade-edx-drf-extensions-89c8f21
robrap Nov 6, 2023
4f4e6dc
Merge pull request #33660 from openedx/robrap/upgrade-edx-drf-extensi…
robrap Nov 6, 2023
32bb4c5
chore: update openedx-learning, new object tags API format (unstable)…
bradenmacdonald Nov 6, 2023
a4b5931
fix: practice exams assigned to wrong type (#33661)
zacharis278 Nov 6, 2023
bee0a98
feat: added new thread notifications behind new course wide waffle fl…
muhammadadeeltajamul Nov 7, 2023
4b4e370
feat: add update taxonomy orgs REST API (#33611)
rpenido Nov 7, 2023
3bcc1f8
chore: bump ORA version (#33674)
nsprenkle Nov 7, 2023
8d3a77a
Revert "feat: Upgrade Python dependency edx-drf-extensions"
robrap Nov 8, 2023
8b1da4d
temp: add constraint to edx-drf-extensions 8.12.0
robrap Nov 8, 2023
4963963
Merge pull request #33682 from openedx/revert-33660-robrap/upgrade-ed…
robrap Nov 8, 2023
6cc9313
Merge pull request #33683 from openedx/robrap/add-edx-drf-extensions-…
robrap Nov 8, 2023
e311ef5
feat: Studio menu/button to display Unit's Tags (feature flagged) (#3…
yusuf-musleh Nov 8, 2023
115833c
chore: geoip2: update maxmind geolite country database
Nov 8, 2023
10805a6
feat: remove old proctoring settings url (#33679)
zacharis278 Nov 9, 2023
d32def9
Merge pull request #33576 from thezaeemaanwar/badges_deletion_migrations
Nov 9, 2023
f494586
feat: Add toggle to allow redirecting to courseware after enrollment.
xitij2000 Feb 6, 2023
dea15c2
fix: hide instructor tab when masquerading as user role with no masqu…
ArturGaspar Nov 8, 2023
c4598c5
Merge pull request #33293 from raccoongang/rg/fix/FC0031/fix_count_it…
Nov 9, 2023
cca1e9e
fix: video drf 500 error (#33658)
KristinAoki Nov 9, 2023
dad31a3
fix: allows taxonomy list to "filter by org" even if org does not exi…
pomegranited Nov 9, 2023
893157d
docs: edx-enterprise-4.7.0 for enterprise api-docs
iloveagent57 Nov 9, 2023
e46c1d1
Python Requirements Update (#33695)
edx-requirements-bot Nov 13, 2023
7050eca
fix: Replaced whitelist_externals with allowlist_externals in tox and…
edx-requirements-bot Nov 13, 2023
5b2f012
feat: link LTI Provider launches to authenticated users
tecoholic Nov 13, 2023
55ee254
feat: Create video_config.xpert_translations_ui Course Waffleflag (#3…
Rodra Nov 14, 2023
aeaa1f8
feat: if course is specified, do not build the course limiting filters
ashultz0 Nov 14, 2023
e59a1dc
Merge pull request #33710 from openedx/ashultz0/simple-course-filter
ashultz0 Nov 14, 2023
ed56222
feat: Upgrade Python dependency ora2 (#33709)
github-actions[bot] Nov 14, 2023
3c40052
Merge pull request #31668 from raccoongang/lunyachek/fix/absent-notif…
jsnwesson Nov 14, 2023
034d632
feat: add import taxonomy endpoint to content_tagging (#33663)
rpenido Nov 14, 2023
ba3fc37
[AutoDeploy][Infrastructure] cluster setup
RafayGhafoor Nov 14, 2023
13a14e0
[AutoDeploy][Create] rafay|1"
RafayGhafoor Nov 14, 2023
c01d5af
[AutoDeploy][Create] rafay|1"
RafayGhafoor Nov 14, 2023
39a62de
[AutoDeploy][Create] rafay|1"
RafayGhafoor Nov 14, 2023
0b382c5
[AutoDeploy][Create] rafay|1"
RafayGhafoor Nov 15, 2023
19551fd
[AutoDeploy][Create] rafay|1"
RafayGhafoor Nov 15, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
chore: fix test cases
  • Loading branch information
salman2013 committed Sep 27, 2023
commit 3abf5971526f564d56cc90ec9feeafdbb374b74b
8 changes: 0 additions & 8 deletions .github/workflows/js-tests.yml
Original file line number Diff line number Diff line change
@@ -30,14 +30,6 @@ jobs:
- name: Setup npm
run: npm i -g npm@8.5.x

# - name: Install Firefox 61.0
# run: |
# sudo apt-get purge firefox
# wget "https://ftp.mozilla.org/pub/firefox/releases/61.0/linux-x86_64/en-US/firefox-61.0.tar.bz2"
# tar -xjf firefox-61.0.tar.bz2
# sudo mv firefox /opt/firefox
# sudo ln -s /opt/firefox/firefox /usr/bin/firefox

- name: Install Required System Packages
run: sudo apt-get update && sudo apt-get install libxmlsec1-dev ubuntu-restricted-extras xvfb

17 changes: 1 addition & 16 deletions openedx/testing/coverage_context_listener/pytest_plugin.py
Original file line number Diff line number Diff line change
@@ -3,9 +3,6 @@
"""

import pytest
# import requests

# from pavelib.utils.envs import Env


class RemoteContextPlugin:
@@ -25,19 +22,7 @@ def pytest_runtest_teardown(self, item):
def pytest_runtest_call(self, item):
self.doit(item, "call")

# commented for testing
# def doit(self, item, when): # lint-amnesty, pylint: disable=missing-function-docstring
# if self.active:
# for cfg in Env.BOK_CHOY_SERVERS.values():
# result = requests.post(
# 'http://{host}:{port}/coverage_context/update_context'.format(**cfg),
# {
# 'context': f"{item.nodeid}|{when}",
# }
# )
# assert result.status_code == 204



@pytest.hookimpl(tryfirst=True)
def pytest_configure(config):
config.pluginmanager.register(RemoteContextPlugin(config), "remotecontextplugin")
70 changes: 2 additions & 68 deletions pavelib/paver_tests/test_js_test.py
Original file line number Diff line number Diff line change
@@ -55,32 +55,14 @@ def setUp(self):
["--suite=lms"],
["--suite=lms --coverage"],
)
# @ddt.unpack
# def test_test_js_run(self, options_string):
# """
# Test the "test_js_run" task.
# """
# options = self.parse_options_string(options_string)
# self.reset_task_messages()
# call_task("pavelib.js_test.test_js_run", options=options)
# self.verify_messages(options=options, dev_mode=False)

@ddt.data(
[""],
["--port=9999"],
["--suite=lms"],
["--suite=lms --port=9999"],
)
# @ddt.unpack
# def test_test_js_dev(self, options_string):
# """
# Test the "test_js_run" task.
# """
# options = self.parse_options_string(options_string)
# self.reset_task_messages()
# call_task("pavelib.js_test.test_js_dev", options=options)
# self.verify_messages(options=options, dev_mode=True)


def parse_options_string(self, options_string):
"""
Parse a string containing the options for a test run
@@ -99,52 +81,4 @@ def parse_options_string(self, options_string):
"suite": suite,
"coverage": coverage,
"port": port,
}

# def verify_messages(self, options, dev_mode):
# """
# Verify that the messages generated when running tests are as expected
# for the specified options and dev_mode.
# """
# is_coverage = options['coverage']
# port = options['port']
# expected_messages = []
# suites = Env.JS_TEST_ID_KEYS if options['suite'] == 'all' else [options['suite']]

# expected_messages.extend(self.EXPECTED_COMMANDS)
# if not dev_mode and not is_coverage:
# expected_messages.append(self.EXPECTED_DELETE_JAVASCRIPT_REPORT_COMMAND.format(
# platform_root=self.platform_root
# ))
# expected_messages.append(self.EXPECTED_INSTALL_NPM_ASSETS_COMMAND)

# command_template = (
# 'node --max_old_space_size=4096 node_modules/.bin/karma start {options}'
# )

# for suite in suites:
# # Karma test command
# if suite != 'jest-snapshot':
# karma_config_file = Env.KARMA_CONFIG_FILES[Env.JS_TEST_ID_KEYS.index(suite)]
# expected_test_tool_command = command_template.format(
# options=self.EXPECTED_KARMA_OPTIONS.format(
# config_file=karma_config_file,
# single_run='false' if dev_mode else 'true',
# suite=suite,
# platform_root=self.platform_root,
# browser=Env.KARMA_BROWSER,
# ),
# )
# if is_coverage:
# expected_test_tool_command += self.EXPECTED_COVERAGE_OPTIONS.format(
# platform_root=self.platform_root,
# suite=suite
# )
# if port:
# expected_test_tool_command += f" --port={port}"
# else:
# expected_test_tool_command = 'jest'

# expected_messages.append(expected_test_tool_command)

# assert self.task_messages == expected_messages
}