Skip to content
Snippets Groups Projects
Commit 7b68b41b authored by Hans Fangohr's avatar Hans Fangohr
Browse files

black

parent 8d504467
No related branches found
No related tags found
1 merge request!36Available command
Pipeline #370507 failed
...@@ -341,6 +341,7 @@ def test_install_environment_zlib(): ...@@ -341,6 +341,7 @@ def test_install_environment_zlib():
) )
assert len(build_log) == 4 assert len(build_log) == 4
def test_metadata_logging(tmp_path): def test_metadata_logging(tmp_path):
"""Test that metadata is logged and read correctly.""" """Test that metadata is logged and read correctly."""
# Test that the metadata is logged correctly # Test that the metadata is logged correctly
...@@ -381,10 +382,20 @@ def test_metadata_logging(tmp_path): ...@@ -381,10 +382,20 @@ def test_metadata_logging(tmp_path):
def test_get_available_toolchains(): def test_get_available_toolchains():
toolchains = mod.get_available_toolchains('dev-23a') toolchains = mod.get_available_toolchains("dev-23a")
assert sorted(toolchains) == sorted(['foss2021a-cuda-mpi', 'foss2021a-mpi', assert sorted(toolchains) == sorted(
'foss2021a-serial', 'foss2022a-cuda-mpi', 'foss2022a-mpi', [
'foss2022a-serial', 'global', 'global_generic']) "foss2021a-cuda-mpi",
"foss2021a-mpi",
"foss2021a-serial",
"foss2022a-cuda-mpi",
"foss2022a-mpi",
"foss2022a-serial",
"global",
"global_generic",
]
)
def test_create_log_file_names(): def test_create_log_file_names():
"""Test that the log file names are created correctly.""" """Test that the log file names are created correctly."""
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment