-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove dependencies and refactor test code and data (#53)
- Loading branch information
1 parent
dca29f1
commit a195124
Showing
55 changed files
with
1,488 additions
and
588 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
"""Conftest.py pytest setup.""" | ||
import os | ||
import shutil | ||
|
||
import pytest | ||
|
||
|
||
@pytest.fixture(name="datatree", scope="session", autouse=True) | ||
def fixture_datatree(tmp_path_factory): | ||
"""Create a tmp folder structure for testing.""" | ||
tmppath = tmp_path_factory.mktemp("grd3dmaps") | ||
|
||
shutil.copytree("tests/yaml", tmppath / "tests" / "yaml") | ||
shutil.copytree("tests/data", tmppath / "tests" / "data") | ||
|
||
print("Temporary folder: ", tmppath) | ||
os.chdir(tmppath) | ||
return tmppath | ||
|
||
|
||
@pytest.fixture(name="erttree", scope="session", autouse=True) | ||
def fixture_erttree(tmp_path_factory): | ||
"""Create a tmp folder structure for testing ert connection.""" | ||
tmppath = tmp_path_factory.mktemp("ertrun") | ||
|
||
shutil.copytree("tests/yaml", tmppath / "tests" / "yaml") | ||
shutil.copytree("tests/data", tmppath / "tests" / "data") | ||
|
||
print("Temporary folder: ", tmppath) | ||
os.chdir(tmppath) | ||
return tmppath |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Oops, something went wrong.