Conditions | 2 |
Total Lines | 9 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | import pytest |
||
12 | def test_env(self): |
||
13 | with TestResources.temp_dir(copy_resource="fake") as path: |
||
14 | context = Context(path, dry_run=True) |
||
15 | output_env_path = path / "fakeenv.yml" |
||
16 | env = CondaEnv("fakeenv", False, False) |
||
17 | txt = "\n".join(env.create(context, output_env_path)) |
||
18 | assert "name: fakeenv" in txt |
||
19 | assert "pip:" not in txt |
||
20 | assert "pytest" not in txt |
||
21 | |||
35 |