Skip to content

Commit

Permalink
Formatter
Browse files Browse the repository at this point in the history
  • Loading branch information
monsieurswag committed May 15, 2024
1 parent 466e466 commit 5ae1662
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 3 additions & 1 deletion backend/app_tests/api/test_api_requirement_nodes.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,9 @@ def test_import_requirement_nodes(self, test):
test.client,
"Requirement nodes",
EndpointTestsUtils.get_endpoint_url("Requirement nodes"),
EndpointTestsUtils.get_stored_library_content(test.client, TEST_FRAMEWORK_URN),
EndpointTestsUtils.get_stored_library_content(
test.client, TEST_FRAMEWORK_URN
),
[
"name",
"description",
Expand Down
4 changes: 1 addition & 3 deletions backend/app_tests/api/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,7 @@ def get_referential_object_url_from_urn(
"""Get the object URL from the URN"""
return f"{reverse(STORED_LIBRARIES_ENDPOINT)}{urn}/"

def get_stored_library_content(
authenticated_client,urn: str
) -> str :
def get_stored_library_content(authenticated_client, urn: str) -> str:
"""Return an URL to fetch the content of a stored library"""
return f"{reverse(STORED_LIBRARIES_ENDPOINT)}{urn}/content/"

Expand Down

0 comments on commit 5ae1662

Please sign in to comment.