Skip to content

Commit

Permalink
Fix linting errors
Browse files Browse the repository at this point in the history
  • Loading branch information
giftcup committed Oct 18, 2024
1 parent 0236320 commit 0d4e920
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions tests/mocked/test_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,8 @@ def test_delete_trigger(mock_client: Client, mock_client_url):

responses.add(
responses.DELETE,
f"{mock_client_url}/v2/functions/namespaces/{namespace_id}/triggers/{trigger_name}",
f"{mock_client_url}/v2/functions/namespaces/"
f"{namespace_id}/triggers/{trigger_name}",
status=204,
)

Expand Down Expand Up @@ -177,7 +178,8 @@ def test_get_trigger(mock_client: Client, mock_client_url):

responses.add(
responses.GET,
f"{mock_client_url}/v2/functions/namespaces/{namespace_id}/triggers/{trigger_name}",
f"{mock_client_url}/v2/functions/namespaces/"
f"{namespace_id}/triggers/{trigger_name}",
json=expected,
status=200,
)
Expand All @@ -201,7 +203,8 @@ def test_list_namespaces(mock_client: Client, mock_client_url):
"label": "my namespace",
"region": "nyc1",
"uuid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"key": "d1zcd455h01mqjfs4s2eaewyejehi5f2uj4etqq3h7cera8iwkub6xg5of1wdde2",
"key": "d1zcd455h01mqjfs4s2eaewyejehi5f"
"2uj4etqq3h7cera8iwkub6xg5of1wdde2",
}
]
}
Expand Down Expand Up @@ -287,7 +290,8 @@ def test_update_trigger(mock_client: Client, mock_client_url):

responses.add(
responses.PUT,
f"{mock_client_url}/v2/functions/namespaces/{namespace_id}/triggers/{trigger_name}",
f"{mock_client_url}/v2/functions/namespaces/"
f"{namespace_id}/triggers/{trigger_name}",
json=expected,
status=200,
)
Expand Down

0 comments on commit 0d4e920

Please sign in to comment.