Skip to content

Commit

Permalink
bug fix in finding test data. pytest runs locally now
Browse files Browse the repository at this point in the history
  • Loading branch information
RichieHakim committed Jan 28, 2024
1 parent 76216f0 commit d816d6e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/test_integration.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
def test_pipeline_tracking_simple(dir_data_test):
dir_temp = str(tempfile.TemporaryDirectory().name)
dir_project = str(Path(dir_temp).resolve() / 'project')
dir_inputs = str(Path(dir_data_test).resolve() / 'inputs')
dir_outputs = str(Path(dir_temp).resolve() / 'outputs')
dir_inputs = str(Path(dir_data_test).resolve() / 'inputs')
dir_outputs_true = str(Path(dir_data_test).resolve() / 'outputs')

defaults = util.get_default_parameters(
directory_project=dir_project,
Expand Down Expand Up @@ -182,10 +182,10 @@ def test_pipeline_tracking_simple(dir_data_test):
## Check run_data equality
print(f"Checking run_data equality")
paths_rundata_true = helpers.find_paths(
dir_outer=dir_outputs,
dir_outer=dir_outputs_true,
reMatch=r'.*',
)
paths_rundata_relative = [str(Path(p).relative_to(dir_outputs)) for p in paths_rundata_true]
paths_rundata_relative = [str(Path(p).relative_to(dir_outputs_true)) for p in paths_rundata_true]
paths_rundata_test = [str(Path(dir_project) / Path(p)) for p in paths_rundata_relative]

def load_file(path):
Expand Down

0 comments on commit d816d6e

Please sign in to comment.