Skip to content
This repository has been archived by the owner on Nov 7, 2024. It is now read-only.

Commit

Permalink
GO FORMAT YOURSELF (black)
Browse files Browse the repository at this point in the history
  • Loading branch information
cow-bot committed Sep 18, 2023
1 parent 8d2e148 commit 1165471
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions tests/json/test_load_from_json.py
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ def contains_warning_of_type(
[
"/entry/instrument/test_component/transformations/location",
"transformations/location",
"location"
"location",
],
)
def test_GIVEN_json_with_component_depending_on_non_existent_transform_WHEN_loaded_THEN_warning_is_added(
Expand Down Expand Up @@ -401,11 +401,7 @@ def test_GIVEN_json_with_attribute_depends_on_WHEN_loaded_THEN_warning_is_added(

@pytest.mark.parametrize(
"depends_on_path",
[
".",
"",
None
],
[".", "", None],
)
def test_GIVEN_json_with_component_with_null_depends_on_WHEN_loaded_THEN_no_effect(
json_dict_with_component, json_reader, depends_on_path
Expand Down Expand Up @@ -462,7 +458,7 @@ def test_GIVEN_json_with_component_depending_on_relative_transform_WHEN_loaded_T
if depends_on_path is not None:
transform_name = depends_on_path.split("/")[-1]
else:
transform_name = 'None'
transform_name = "None"

json_dict_with_component["children"][0]["children"][0]["children"][0][
"children"
Expand All @@ -478,7 +474,8 @@ def test_GIVEN_json_with_component_depending_on_relative_transform_WHEN_loaded_T
== "componentname"
)
assert (
json_reader._components_depends_on["componentname"][1].transform_name == transform_name
json_reader._components_depends_on["componentname"][1].transform_name
== transform_name
)


Expand Down

0 comments on commit 1165471

Please sign in to comment.