Skip to content

Commit

Permalink
tests: temporary fix for datapackage test
Browse files Browse the repository at this point in the history
  • Loading branch information
JEPooley committed Nov 2, 2023
1 parent f6a1831 commit 4200364
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions tests/test_downloads_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,15 +77,14 @@ def data_package(self):
@pytest.mark.skipif(API_KEY is None, reason="Test API key not available")
def test_download_pass(self):
# Arrange
product_package = DataPackageDownload(API_KEY, "98")
files_to_download = product_package.product_list("156")
product_package = DataPackageDownload(API_KEY, "97")

# Act
with tempfile.TemporaryDirectory() as tmpdirname:
downloaded = product_package.download("156", tmpdirname)
downloaded = product_package.download("17094", tmpdirname, "bld_fts_buildingpart_orderSummary.json")

# Assert
assert len(downloaded) == len(files_to_download["downloads"])
assert len(downloaded) == 1

def test_download_list_pass(self):
# TODO: implement download_list_pass
Expand Down

0 comments on commit 4200364

Please sign in to comment.