Skip to content

Commit

Permalink
Docs for test functions
Browse files Browse the repository at this point in the history
  • Loading branch information
sayerhs committed Jan 6, 2018
1 parent 7cbfe9e commit 5dc75e9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/config/test_cmlenv.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ def _cfg():

@pytest.fixture(scope="module")
def caelus_directory():
"""Temporary Caelus root directory for testing"""
ostype = "windows" if os.name == 'nt' else os.uname()[0].lower()
root_dir = tempfile.mkdtemp()
os.makedirs(os.path.join(
Expand All @@ -49,6 +50,7 @@ def caelus_directory():

@pytest.fixture(autouse=True)
def no_get_config(monkeypatch, caelus_directory):
"""Mock CaelusCfg object for testing"""
monkeypatch.setattr(cmlenv, "get_config", mock_get_config())
cfg = cmlenv.get_config()
cfg.caelus.caelus_cml.versions[0].path = os.path.join(
Expand Down

0 comments on commit 5dc75e9

Please sign in to comment.