Skip to content

Commit

Permalink
fix tests pathing
Browse files Browse the repository at this point in the history
  • Loading branch information
FelixMau committed Aug 28, 2023
1 parent 4f5c753 commit e356fd6
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions tests/test_build_datapackage.py
Original file line number Diff line number Diff line change
Expand Up @@ -194,12 +194,15 @@ def mock_get_process(process_name):

mock_adapter.get_process.side_effect = mock_get_process
# Call the method with the mock adapter
path = os.getcwd()
test_path = os.path.join(path, "_files", "build_datapackage_test")
goal_path = os.path.join(path, "_files", "build_datapackage_goal")
result = DataPackage.build_datapackage(mock_adapter)
result.save_datapackage_to_csv("_files/build_datapackage_test")
result.save_datapackage_to_csv(test_path)

check_if_csv_dirs_equal(
"tests/_files/build_datapackage_goal",
"_files/build_datapackage_test",
goal_path,
test_path,
)


Expand Down

0 comments on commit e356fd6

Please sign in to comment.