Skip to content

Commit

Permalink
chore: fix test
Browse files Browse the repository at this point in the history
Signed-off-by: ThibaultFy <[email protected]>
  • Loading branch information
ThibaultFy committed Oct 3, 2024
1 parent de47dd9 commit cebb06c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/tools/test_opener.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@ def fake_data(self, n_samples):
assert o.get_data() == "data_class"


def test_load_opener_from_path(valid_opener_code):
dirpath = tmp_cwd / "myopener"
def test_load_opener_from_path(tmpdir, valid_opener_code):
dirpath = tmpdir / "myopener"
dirpath.mkdir()
path = dirpath / "my_opener.py"
path.write_text(valid_opener_code)
Expand Down

0 comments on commit cebb06c

Please sign in to comment.