Skip to content

Commit

Permalink
test: correct tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Ian2012 committed Oct 26, 2023
1 parent 1fd2ad1 commit c59f712
Show file tree
Hide file tree
Showing 7 changed files with 29 additions and 21 deletions.
6 changes: 2 additions & 4 deletions event_routing_backends/tests/test_settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@ def test_common_settings(self):
Test common settings
"""
common_settings.plugin_settings(settings)
self.assertIn('xapi', settings.EVENT_TRACKING_BACKENDS)
self.assertIn('caliper', settings.EVENT_TRACKING_BACKENDS)
self.assertIn('event_bus', settings.EVENT_TRACKING_BACKENDS)
self.assertIn('edx.course.enrollment.activated', settings.EVENT_TRACKING_BACKENDS_BUSINESS_CRITICAL_EVENTS)
self.assertFalse(settings.CALIPER_EVENTS_ENABLED)
self.assertFalse(settings.CALIPER_EVENT_LOGGING_ENABLED)
Expand All @@ -33,8 +32,7 @@ def test_devstack_settings(self):
Test devstack settings
"""
devstack_settings.plugin_settings(settings)
self.assertIn('xapi', settings.EVENT_TRACKING_BACKENDS)
self.assertIn('caliper', settings.EVENT_TRACKING_BACKENDS)
self.assertIn('event_bus', settings.EVENT_TRACKING_BACKENDS)
self.assertIn('edx.course.enrollment.deactivated', settings.EVENT_TRACKING_BACKENDS_BUSINESS_CRITICAL_EVENTS)
self.assertFalse(settings.CALIPER_EVENTS_ENABLED)
self.assertFalse(settings.CALIPER_EVENT_LOGGING_ENABLED)
Expand Down
4 changes: 2 additions & 2 deletions requirements/base.in
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ django-fernet-fields-v2
django-config-models
edx-toggles # For SettingToggle class
tincan
event-tracking
git+https://github.com/edunext/event-tracking@cag/add-openedx-event-signal
edx-celeryutils
apache-libcloud # For bulk event log loading
fasteners # Locking tools, required by apache-libcloud, but somehow not installed with it
openedx-events
git+https://github.com/edunext/openedx-events@cag/add-openedx-event-signal
8 changes: 5 additions & 3 deletions requirements/base.txt
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,10 @@ edx-django-utils==5.7.0
edx-opaque-keys[django]==2.5.1
# via openedx-events
edx-toggles==5.1.0
# via -r requirements/base.in
event-tracking==2.2.0
# via
# -r requirements/base.in
# event-tracking
event-tracking @ git+https://github.com/edunext/event-tracking@cag/add-openedx-event-signal
# via -r requirements/base.in
fastavro==1.8.4
# via openedx-events
Expand All @@ -115,7 +117,7 @@ markupsafe==2.1.3
# via jinja2
newrelic==9.1.1
# via edx-django-utils
openedx-events==9.0.0
openedx-events @ git+https://github.com/edunext/openedx-events@cag/add-openedx-event-signal
# via -r requirements/base.in
pbr==5.11.1
# via stevedore
Expand Down
8 changes: 5 additions & 3 deletions requirements/dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -175,8 +175,10 @@ edx-opaque-keys[django]==2.5.1
# edx-opaque-keys
# openedx-events
edx-toggles==5.1.0
# via -r requirements/quality.txt
event-tracking==2.2.0
# via
# -r requirements/quality.txt
# event-tracking
event-tracking @ git+https://github.com/edunext/event-tracking@cag/add-openedx-event-signal
# via -r requirements/quality.txt
exceptiongroup==1.1.3
# via
Expand Down Expand Up @@ -251,7 +253,7 @@ newrelic==9.1.1
# via
# -r requirements/quality.txt
# edx-django-utils
openedx-events==9.0.0
openedx-events @ git+https://github.com/edunext/openedx-events@cag/add-openedx-event-signal
# via -r requirements/quality.txt
packaging==23.2
# via
Expand Down
8 changes: 5 additions & 3 deletions requirements/doc.txt
Original file line number Diff line number Diff line change
Expand Up @@ -163,8 +163,10 @@ edx-opaque-keys[django]==2.5.1
# edx-opaque-keys
# openedx-events
edx-toggles==5.1.0
# via -r requirements/test.txt
event-tracking==2.2.0
# via
# -r requirements/test.txt
# event-tracking
event-tracking @ git+https://github.com/edunext/event-tracking@cag/add-openedx-event-signal
# via -r requirements/test.txt
exceptiongroup==1.1.3
# via
Expand Down Expand Up @@ -240,7 +242,7 @@ newrelic==9.1.1
# edx-django-utils
nh3==0.2.14
# via readme-renderer
openedx-events==9.0.0
openedx-events @ git+https://github.com/edunext/openedx-events@cag/add-openedx-event-signal
# via -r requirements/test.txt
packaging==23.2
# via
Expand Down
8 changes: 5 additions & 3 deletions requirements/quality.txt
Original file line number Diff line number Diff line change
Expand Up @@ -151,8 +151,10 @@ edx-opaque-keys[django]==2.5.1
# edx-opaque-keys
# openedx-events
edx-toggles==5.1.0
# via -r requirements/test.txt
event-tracking==2.2.0
# via
# -r requirements/test.txt
# event-tracking
event-tracking @ git+https://github.com/edunext/event-tracking@cag/add-openedx-event-signal
# via -r requirements/test.txt
exceptiongroup==1.1.3
# via
Expand Down Expand Up @@ -208,7 +210,7 @@ newrelic==9.1.1
# via
# -r requirements/test.txt
# edx-django-utils
openedx-events==9.0.0
openedx-events @ git+https://github.com/edunext/openedx-events@cag/add-openedx-event-signal
# via -r requirements/test.txt
packaging==23.2
# via
Expand Down
8 changes: 5 additions & 3 deletions requirements/test.txt
Original file line number Diff line number Diff line change
Expand Up @@ -137,8 +137,10 @@ edx-opaque-keys[django]==2.5.1
# edx-opaque-keys
# openedx-events
edx-toggles==5.1.0
# via -r requirements/base.txt
event-tracking==2.2.0
# via
# -r requirements/base.txt
# event-tracking
event-tracking @ git+https://github.com/edunext/event-tracking@cag/add-openedx-event-signal
# via -r requirements/base.txt
exceptiongroup==1.1.3
# via pytest
Expand Down Expand Up @@ -182,7 +184,7 @@ newrelic==9.1.1
# via
# -r requirements/base.txt
# edx-django-utils
openedx-events==9.0.0
openedx-events @ git+https://github.com/edunext/openedx-events@cag/add-openedx-event-signal
# via -r requirements/base.txt
packaging==23.2
# via pytest
Expand Down

0 comments on commit c59f712

Please sign in to comment.