Skip to content

Commit

Permalink
test: verifing test cases 26
Browse files Browse the repository at this point in the history
  • Loading branch information
mfarhan943 committed Sep 23, 2024
1 parent 22d7b41 commit d8103d7
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions cms/djangoapps/contentstore/signals/handlers.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,8 +145,8 @@ def listen_for_course_publish(sender, course_key, **kwargs): # pylint: disable=

# Kick off a courseware indexing action after the data is ready
if CoursewareSearchIndexer.indexing_is_enabled() and CourseAboutSearchIndexer.indexing_is_enabled():
transaction.on_commit(lambda: update_search_index.delay(course_key_str, datetime.now(ZoneInfo("UTC")).isoformat()))

transaction.on_commit(lambda: update_search_index.delay(
course_key_str, datetime.now(ZoneInfo("UTC")).isoformat()))
update_discussions_settings_from_course_task.apply_async(
args=[course_key_str],
countdown=settings.DISCUSSION_SETTINGS['COURSE_PUBLISH_TASK_DELAY'],
Expand Down
4 changes: 2 additions & 2 deletions cms/djangoapps/contentstore/tests/test_course_settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,6 @@ def setUp(self):

@override_settings(FEATURES={'DISABLE_MOBILE_COURSE_AVAILABLE': True})
def test_mobile_field_available(self):

"""
Test to check `Mobile Course Available` field is not viewable in Studio
when DISABLE_MOBILE_COURSE_AVAILABLE is true.
Expand Down Expand Up @@ -238,7 +237,8 @@ def test_update_and_fetch(self):
self.alter_field(url, details, 'start_date', datetime.datetime(2012, 11, 12, 1, 30, tzinfo=ZoneInfo("UTC")))
self.alter_field(url, details, 'start_date', datetime.datetime(2012, 11, 1, 13, 30, tzinfo=ZoneInfo("UTC")))
self.alter_field(url, details, 'end_date', datetime.datetime(2013, 2, 12, 1, 30, tzinfo=ZoneInfo("UTC")))
self.alter_field(url, details, 'enrollment_start', datetime.datetime(2012, 10, 12, 1, 30, tzinfo=ZoneInfo("UTC")))
self.alter_field(url, details, 'enrollment_start', datetime.datetime(
2012, 10, 12, 1, 30, tzinfo=ZoneInfo("UTC")))

self.alter_field(url, details, 'enrollment_end', datetime.datetime(2012, 11, 15, 1, 30, tzinfo=ZoneInfo("UTC")))
self.alter_field(url, details, 'short_description', "Short Description")
Expand Down
2 changes: 1 addition & 1 deletion openedx/core/lib/tests/test_time_zone_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,6 @@ def test_display_time_zone_ambiguous_after(self):
Test to ensure get_display_time_zone() returns correct abbreviations and offsets
during ambiguous time periods (e.g. when DST is about to start/end) after the change
"""
with freeze_time("2015-11-01 09:00:00"):
with freeze_time("2024-11-04 09:00:00"):
tz_info = self._display_time_zone_helper('America/Los_Angeles')
self._assert_time_zone_info_equal(tz_info, 'America/Los Angeles', 'PST', '-0800')

0 comments on commit d8103d7

Please sign in to comment.