Skip to content

Commit

Permalink
fix integration test
Browse files Browse the repository at this point in the history
  • Loading branch information
nllong committed Oct 2, 2024
1 parent aaf05d1 commit 46f5806
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_seed_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ def test_create_organization(self):
# try to create again and it should raise an error
with pytest.raises(Exception) as excpt: # noqa: PT011
self.seed_client.create_organization("NEW ORG")
assert "already exists" in str(excpt.value.error)
assert "already exists" in excpt.value.args[0]

def test_seed_buildings(self):
# set cycle before retrieving (just in case)
Expand Down Expand Up @@ -352,7 +352,7 @@ def test_download_espm_property(self):
save_file_name=save_file,
)

self.assertEqual(str(excpt.value.error), f"Save filename already exists, save to a new file name: {save_file!s}")
self.assertEqual(excpt.value.args[0], f"Save filename already exists, save to a new file name: {save_file!s}")

def test_upload_espm_property_to_seed(self):
file = Path("tests/data/portfolio-manager-single-22482007.xlsx")
Expand Down

0 comments on commit 46f5806

Please sign in to comment.