Skip to content
Snippets Groups Projects
Commit f6bac3e6 authored by Florian Spreckelsen's avatar Florian Spreckelsen
Browse files

STY: autopep8'd

parent 9bad8e2c
Branches
Tags
2 merge requests!217TST: Make NamedTemporaryFiles Windows-compatible,!207Resolve "Failing unit tests on Windows"
Pipeline #58712 passed
...@@ -128,9 +128,10 @@ def test_record_structure_generation(): ...@@ -128,9 +128,10 @@ def test_record_structure_generation():
assert subd[0]["identifier"] == "climate-model-predict" assert subd[0]["identifier"] == "climate-model-predict"
assert subd[0]["Project"].__class__ == db.Record 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 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 assert subc[0]["project_dir"] is False
# Check the copy flags for the first level in the hierarchy: # Check the copy flags for the first level in the hierarchy:
......
...@@ -35,7 +35,8 @@ def test_split_restricted_path(): ...@@ -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}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}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}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(): def test_dummy_class():
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment