Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simplify codes #928

Merged
merged 23 commits into from
Apr 28, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update test_resources.py
  • Loading branch information
lee1043 committed Apr 28, 2023
commit 5bd1002dc5862d3dad0c3bc11971ca143dc20e8b
4 changes: 2 additions & 2 deletions tests/test_resources.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ def test_conda_env(tmpdir):

pmp_share_path = os.path.join(conda_prefix, "share", "pmp")

os.makedirs(pmp_share_path)
os.makedirs(pmp_share_path, exist_ok=True)

with mock.patch.dict(os.environ, {"CONDA_PREFIX": conda_prefix}):
path = resources.resource_path()
Expand All @@ -27,7 +27,7 @@ def test_conda_env_no_exist(resource_filename, getcwd, tmpdir):

getcwd_path = os.path.join(tmpdir, "share", "pmp")

os.makedirs(getcwd_path)
os.makedirs(getcwd_path, exist_ok=True)

getcwd.return_value = tmpdir

Expand Down