diff --git a/unittests/test_scanner.py b/unittests/test_scanner.py index 60ab25916ecef3e19ba79dece2018c9f4fdb4d02..120d804c7895b8411b4f051b6ac8a08495f71359 100644 --- a/unittests/test_scanner.py +++ b/unittests/test_scanner.py @@ -128,9 +128,10 @@ def test_record_structure_generation(): assert subd[0]["identifier"] == "climate-model-predict" assert subd[0]["Project"].__class__ == db.Record - assert subd[0]["DataAnalysis"] == os.path.join("examples_article" , "DataAnalysis") + assert subd[0]["DataAnalysis"] == os.path.join("examples_article", "DataAnalysis") assert subc[0]["DataAnalysis"] is True - assert subd[0]["project_dir"] == os.path.join("examples_article", "DataAnalysis", "2020_climate-model-predict") + assert subd[0]["project_dir"] == os.path.join( + "examples_article", "DataAnalysis", "2020_climate-model-predict") assert subc[0]["project_dir"] is False # Check the copy flags for the first level in the hierarchy: diff --git a/unittests/test_utilities.py b/unittests/test_utilities.py index da1245b3523d2ff13e5f7bfa007f941f5995c79a..a9b052524957b6f8c1e0378e3153fc06f4f36806 100644 --- a/unittests/test_utilities.py +++ b/unittests/test_utilities.py @@ -35,7 +35,8 @@ def test_split_restricted_path(): assert split_restricted_path(f"{sep}test1{sep}test2{sep}bla") == ["test1", "test2", "bla"] assert split_restricted_path(f"{sep}test{sep}{sep}bla") == ["test", "bla"] assert split_restricted_path(f"{sep}{sep}test{sep}bla") == ["test", "bla"] - assert split_restricted_path(f"{sep}{sep}{sep}test{sep}{sep}bla{sep}{sep}{sep}{sep}") == ["test", "bla"] + assert split_restricted_path( + f"{sep}{sep}{sep}test{sep}{sep}bla{sep}{sep}{sep}{sep}") == ["test", "bla"] def test_dummy_class():