Skip to content

Commit f3659ad

Browse files
committed
ran pre-commit
1 parent 5d74add commit f3659ad

File tree

3 files changed

+8
-9
lines changed

3 files changed

+8
-9
lines changed

tests/conftest.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,10 +238,13 @@ def DMGE(helpers: Helpers) -> DataModelGraphExplorer:
238238
dmge = helpers.get_data_model_graph_explorer(path="example.model.jsonld")
239239
return dmge
240240

241+
241242
@pytest.fixture(name="dmge_column_type", scope="function")
242243
def DMGE_column_type(helpers: Helpers) -> DataModelGraphExplorer:
243244
"""Fixture to instantiate a DataModelGraphExplorer object using the data model with column types"""
244-
dmge = helpers.get_data_model_graph_explorer(path="example.model.column_type_component.csv")
245+
dmge = helpers.get_data_model_graph_explorer(
246+
path="example.model.column_type_component.csv"
247+
)
245248
return dmge
246249

247250

tests/data/example.model.column_type_component.jsonld

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2479,4 +2479,4 @@
24792479
}
24802480
],
24812481
"@id": "http://schema.biothings.io/#0.1"
2482-
}
2482+
}

tests/unit/test_create_json_schema.py

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -616,7 +616,6 @@ def test_create_json_schema_with_display_names(
616616
assert expected_json == test_json
617617

618618

619-
620619
def test_create_json_schema_with_no_column_type(
621620
dmge: DataModelGraphExplorer, test_directory: str
622621
) -> None:
@@ -627,9 +626,7 @@ def test_create_json_schema_with_no_column_type(
627626
datatype = "JSONSchemaComponent"
628627
test_file = f"test.{datatype}.display_names_schema.json"
629628
test_path = os.path.join(test_directory, test_file)
630-
expected_path = (
631-
f"tests/data/expected_jsonschemas/expected.{datatype}.schema.json"
632-
)
629+
expected_path = f"tests/data/expected_jsonschemas/expected.{datatype}.schema.json"
633630
create_json_schema(
634631
dmge=dmge,
635632
datatype=datatype,
@@ -644,6 +641,7 @@ def test_create_json_schema_with_no_column_type(
644641
test_json = json.load(file2)
645642
assert expected_json == test_json
646643

644+
647645
def test_create_json_schema_with_column_type(
648646
dmge_column_type: DataModelGraphExplorer, test_directory: str
649647
) -> None:
@@ -654,9 +652,7 @@ def test_create_json_schema_with_column_type(
654652
datatype = "JSONSchemaComponent"
655653
test_file = f"test.{datatype}.display_names_schema.json"
656654
test_path = os.path.join(test_directory, test_file)
657-
expected_path = (
658-
f"tests/data/expected_jsonschemas/expected.{datatype}.schema.json"
659-
)
655+
expected_path = f"tests/data/expected_jsonschemas/expected.{datatype}.schema.json"
660656
create_json_schema(
661657
dmge=dmge_column_type,
662658
datatype=datatype,

0 commit comments

Comments
 (0)