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 7246439 commit aaf05d1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/test_seed_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def test_seed_orgs(self):

def test_seed_client_info(self):
info = self.seed_client.instance_information()
assert set("version", "sha").issubset(info.keys())
assert set(("version", "sha")).issubset(info.keys()) # noqa: C405

def test_create_organization(self):
# create a new organization. This test requires that the
Expand All @@ -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.exception)
assert "already exists" in str(excpt.value.error)

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.exception), f"Save filename already exists, save to a new file name: {save_file!s}")
self.assertEqual(str(excpt.value.error), 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 aaf05d1

Please sign in to comment.