Skip to content

test_envmodules

Functions

test_on_spirit

test_on_spirit()
Source code in tests/test_envmodules.py
 7
 8
 9
10
11
12
13
14
15
16
@pytest.mark.skipif(
    not is_espri_spiritx(), reason="This test can be run only on ESPRI/SpiritX"
)
def test_on_spirit():
    modules = EnvModules()
    assert modules.list_loaded() == []
    assert "gcc/13.2.0" in modules.list_available()
    assert modules.purge()
    assert modules.load("gcc/13.2.0", "cdo/2.3.0")
    assert modules.list_loaded() == ["cdo/2.3.0", "gcc/13.2.0"]