Skip to content

Commit

Permalink
fix expected states
Browse files Browse the repository at this point in the history
  • Loading branch information
b97pla committed Oct 11, 2023
1 parent b799d83 commit 7c5aeee
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/test_dsmc_handlers.py
Original file line number Diff line number Diff line change
Expand Up @@ -480,7 +480,7 @@ def test_compress_archive_full(self):


json_resp = json.loads(resp.body)
self.assertEqual(json_resp["state"], State.DONE)
self.assertEqual(json_resp["state"], State.PENDING)

self.assertFalse(os.path.exists(os.path.join(archive_path, "RunInfo.xml")))
self.assertTrue(os.path.exists(os.path.join(archive_path, "Config")))
Expand All @@ -501,7 +501,7 @@ def test_compress_archive_mini(self):
allow_nonstandard_methods=True)

json_resp = json.loads(resp.body)
self.assertEqual(json_resp["state"], State.DONE)
self.assertEqual(json_resp["state"], State.PENDING)

self.assertTrue(os.path.exists(os.path.join(archive_path, "file.csv")))
self.assertFalse(os.path.exists(os.path.join(archive_path, "file.bin")))
Expand Down Expand Up @@ -538,7 +538,7 @@ def test_compress_archive_exclude(self):
"{}.tar.gz".format(
os.path.basename(archive_path)))

self.assertEqual(State.DONE, json_resp["state"])
self.assertEqual(State.PENDING, json_resp["state"])
self.assertEqual(archive_upload_version, json_resp["service_version"])
self.assertTrue(os.path.exists(tarball_archive_path))
self.assertListEqual([os.path.relpath(tarball_archive_path, archive_path)], os.listdir(archive_path))
Expand Down

0 comments on commit 7c5aeee

Please sign in to comment.