Skip to content

Commit

Permalink
demo doesn't exist
Browse files Browse the repository at this point in the history
  • Loading branch information
pnxenopoulos committed Jun 21, 2024
1 parent 31b0547 commit cfefd08
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 3 additions & 0 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
import pytest
import requests

from loguru import logger


@pytest.fixture(scope="session", autouse=True)
def setup(): # noqa: PT004, ANN201
Expand All @@ -14,6 +16,7 @@ def setup(): # noqa: PT004, ANN201
demo_data = json.load(file)
for file in demo_data:
if file not in os.listdir("tests"):
logger.debug(f"Downloading {file}.dem...")
_get_demofile(demo_link=demo_data[file]["url"], demo_name=file)


Expand Down
2 changes: 0 additions & 2 deletions tests/test_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,6 @@ def test_parse_zip_creation(self):
pytest.fail(f"Test file {demofile} does not exist.")

result = self.runner.invoke(parse, [str(demofile)])
print("Output:", result.output)
print("Exception:", result.exception)
assert result.exit_code == 0

zip_name = Path(Path(demofile.name).stem + ".zip")
Expand Down

0 comments on commit cfefd08

Please sign in to comment.