Skip to content

Commit

Permalink
fix: Fixes unzip
Browse files Browse the repository at this point in the history
  • Loading branch information
Nathan Hui committed Nov 27, 2023
1 parent 5cbab83 commit bcbe76e
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions pyha_tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
from nas_unzip.nas import nas_unzip


@pytest.fixture(name='creds')
@pytest.fixture(name='creds', scope='session')
def create_creds() -> Dict[str, str]:
"""Obtains the credentials
Expand All @@ -30,7 +30,7 @@ def create_creds() -> Dict[str, str]:
}


@pytest.fixture(name='reference_data')
@pytest.fixture(name='reference_data', scope='session')
def create_reference_data(creds) -> Path:
"""Creates reference data
Expand All @@ -52,6 +52,7 @@ def create_reference_data(creds) -> Path:
username=creds['username'],
password=creds['password']
)
yield path.joinpath('pyha_test')
else:
shutil.copytree(Path('TEST'), path, dirs_exist_ok=True)
yield path
yield path

0 comments on commit bcbe76e

Please sign in to comment.