Skip to content

Commit fe89f35

Browse files
committed
rm conda_env fixture
1 parent 0022c62 commit fe89f35

File tree

1 file changed

+0
-21
lines changed

1 file changed

+0
-21
lines changed

tests/conftest.py

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,10 @@
11
import json
2-
import os
3-
import subprocess
42
from pathlib import Path
53

64
import matplotlib
75
import pytest
86

97

10-
@pytest.fixture(scope="function")
11-
def conda_env(tmp_path):
12-
env_dir = tmp_path / "fake_env"
13-
env_dir_str = env_dir.as_posix()
14-
shell = os.name == "nt"
15-
subprocess.run(
16-
["conda", "create", "-y", "-p", env_dir_str],
17-
check=True,
18-
capture_output=True,
19-
shell=shell,
20-
)
21-
yield env_dir_str
22-
subprocess.run(
23-
["conda", "env", "remove", "-p", env_dir_str, "-y"],
24-
check=True,
25-
shell=shell,
26-
)
27-
28-
298
@pytest.fixture(scope="function")
309
def example_cases(tmp_path_factory):
3110
"""Copy the entire examples tree into a temp directory once per test

0 commit comments

Comments
 (0)