Skip to content

Commit

Permalink
SG-24020: Fixes a bug in the schedule test (#250)
Browse files Browse the repository at this point in the history
Reactivates and fixes a broken test.
  • Loading branch information
jfboismenu authored Sep 23, 2021
1 parent 4a8f543 commit 7ac2ccd
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/test_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -785,7 +785,9 @@ def test_work_schedule(self):
end_date_obj = datetime.datetime(2012, 1, 7)

project = self.project
user = self.sg.find_one('HumanUser', [['projects', 'is', project]], ['name'])
# We're going to be comparing this value with the value returned from the server, so extract only the type
# and id
user = {"type": self.human_user["type"], "id": self.human_user["id"], "name": self.human_user["name"]}

work_schedule = self.sg.work_schedule_read(start_date, end_date, project, user)

Expand Down Expand Up @@ -842,7 +844,7 @@ def test_work_schedule(self):
resp = self.sg.work_schedule_read(start_date, end_date, project, user)
work_schedule['2012-01-04'] = {"reason": "USER_EXCEPTION", "working": False, "description": "Artist Holiday"}
# FIXME: There seems to be a regresion on the Shotgun server that needs to be fixed. Disabling the test
# self.assertEqual(work_schedule, resp)
self.assertEqual(work_schedule, resp)

# For now disable tests that are erroneously failling on some sites to
# allow CI to pass until the known issue causing this is resolved.
Expand Down

0 comments on commit 7ac2ccd

Please sign in to comment.