Skip to content

Commit

Permalink
fix: Adds local test bypass for TEST directory
Browse files Browse the repository at this point in the history
  • Loading branch information
ntlhui committed Nov 17, 2023
1 parent ac020a1 commit 7e3ea53
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions pyha_tests/test_pyha.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from pathlib import Path
from tempfile import TemporaryDirectory
from typing import Dict

import shutil
import importlib
import pytest
from nas_unzip.nas import nas_unzip
Expand Down Expand Up @@ -42,12 +42,15 @@ def test_pyha(creds):
"""Tests PyHa
"""
with TemporaryDirectory() as path:
nas_unzip(
network_path='smb://e4e-nas.ucsd.edu:6021/temp/github_actions/pyha/pyha_test.zip',
output_path=Path(path),
username=creds['username'],
password=creds['password']
)
if not Path('TEST').is_dir():
nas_unzip(
network_path='smb://e4e-nas.ucsd.edu:6021/temp/github_actions/pyha/pyha_test.zip',
output_path=Path(path),
username=creds['username'],
password=creds['password']
)
else:
shutil.copytree(Path('TEST'), Path(path, 'pyha_test'))
isolation_parameters = {
"model": "tweetynet",
"tweety_output": True,
Expand Down

0 comments on commit 7e3ea53

Please sign in to comment.