test_openended_commands.py
7.9 KB
-
Fixed flaky test for instructor command openended_post. · e0ecf011
The submission time is serialized into json and sent to xqueue. Previously the whole json body argument to send_to_queue() was being matched. Sometimes the time calculated in the test would differ slightly from the time calculated in send_to_grader() and the test would fail. This fix tests individual fields of the body argument to mock_send_to_queue() instead.
Usman Khalid committed