Skip to content

Commit

Permalink
Remove test params for lazy load
Browse files Browse the repository at this point in the history
  • Loading branch information
ryan-kipawa committed Nov 5, 2024
1 parent 12e532f commit d9cb69e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions tests/test_res1d_catchments.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ def test_file_path_for_merging():
return os.path.join(test_folder_path, "testdata", "catchment_merge.res1d")


@pytest.fixture(params=[True, False])
@pytest.fixture
def test_file(test_file_path, request):
return Res1D(test_file_path, lazy_load=request.param)
return Res1D(test_file_path, lazy_load=False)


def test_read(test_file):
Expand Down
8 changes: 4 additions & 4 deletions tests/test_res1d_network.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ def test_file_path():
return os.path.join(test_folder_path, "testdata", "network.res1d")


@pytest.fixture(params=[True, False])
def test_file(test_file_path, request):
return Res1D(test_file_path, lazy_load=request.param)
@pytest.fixture
def test_file(test_file_path):
return Res1D(test_file_path, lazy_load=False)


def test_file_does_not_exist():
Expand All @@ -32,7 +32,7 @@ def test_file_does_not_exist():
def test_read(test_file):
df = test_file.read()
assert len(df) == 110
# TODO: assert not df.columns.duplicated().any() - add this, but it fails since columns are not guaranteed unique
assert not df.columns.duplicated().any()


def test_mike1d_quantities():
Expand Down

0 comments on commit d9cb69e

Please sign in to comment.