We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c147a03 commit 4c337c8Copy full SHA for 4c337c8
mapswipe_workers/tests/integration/test_transfer_results_invalid_results.py
@@ -23,6 +23,8 @@ def test_invalid_task_in_result(self):
23
24
In this test the results contain an additional task.
25
This should raise a Database error due to a foreign key violation.
26
+ Because results could not be stored in Postgres DB,
27
+ they should also NOT be deleted in Firebase.
28
"""
29
30
test_dir = os.path.dirname(__file__)
@@ -42,7 +44,7 @@ def test_invalid_task_in_result(self):
42
44
43
45
fb_db = auth.firebaseDB()
46
ref = fb_db.reference("v2/results/{0}".format(self.project_id))
- self.assertIsNotNone(ref.get())
47
+ self.assertDictEqual(ref.get(shallow=True), {"g115": True})
48
49
50
if __name__ == "__main__":
0 commit comments