diff --git a/tests.py b/tests.py
index b2a4edd64626a14feb7105e75484c19cca678e3e..601734487df2fa83f1781a35531101c15bbccba9 100644
--- a/tests.py
+++ b/tests.py
@@ -341,6 +341,7 @@ def test_install_environment_zlib():
     )
     assert len(build_log) == 4
 
+
 def test_metadata_logging(tmp_path):
     """Test that metadata is logged and read correctly."""
     # Test that the metadata is logged correctly
@@ -381,10 +382,20 @@ def test_metadata_logging(tmp_path):
 
 
 def test_get_available_toolchains():
-    toolchains = mod.get_available_toolchains('dev-23a')
-    assert sorted(toolchains) == sorted(['foss2021a-cuda-mpi', 'foss2021a-mpi',
-                                        'foss2021a-serial', 'foss2022a-cuda-mpi', 'foss2022a-mpi',
-                                        'foss2022a-serial', 'global', 'global_generic'])
+    toolchains = mod.get_available_toolchains("dev-23a")
+    assert sorted(toolchains) == sorted(
+        [
+            "foss2021a-cuda-mpi",
+            "foss2021a-mpi",
+            "foss2021a-serial",
+            "foss2022a-cuda-mpi",
+            "foss2022a-mpi",
+            "foss2022a-serial",
+            "global",
+            "global_generic",
+        ]
+    )
+
 
 def test_create_log_file_names():
     """Test that the log file names are created correctly."""