Skip to content

Commit

Permalink
chore: fix test
Browse files Browse the repository at this point in the history
Signed-off-by: ThibaultFy <thibault.fouqueray@gmail.com>
  • Loading branch information
ThibaultFy committed Oct 3, 2024
1 parent de47dd9 commit 79ba252
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions tests/tools/test_opener.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,18 @@
from substratools.workspace import DEFAULT_INPUT_DATA_FOLDER_PATH


# @pytest.fixture
# def tmp_cwd(tmp_path):
# # create a temporary current working directory
# new_dir = tmp_path / "workspace"
# new_dir.mkdir()
@pytest.fixture
def tmp_cwd(tmp_path):
# create a temporary current working directory
new_dir = tmp_path / "workspace"
new_dir.mkdir()

# old_dir = os.getcwd()
# os.chdir(new_dir)
old_dir = os.getcwd()
os.chdir(new_dir)

# yield new_dir
yield new_dir

# os.chdir(old_dir)
os.chdir(old_dir)


def test_load_opener_not_found():
Expand Down

0 comments on commit 79ba252

Please sign in to comment.