Skip to content

Commit

Permalink
fix linting issues
Browse files Browse the repository at this point in the history
  • Loading branch information
work-mohit committed Oct 2, 2023
1 parent 51e419a commit bc58fc1
Showing 1 changed file with 17 additions and 18 deletions.
35 changes: 17 additions & 18 deletions tests/mocked/test_databases.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,17 +71,17 @@ def test_databases_delete(mock_client: Client, mock_client_url):
"""Mocks the databases delete operation."""

cluster_uuid = "9cc10173-e9ea-4176-9dbc-a4cee4c4ff30"
database_name = 'alpha'
database_name = "alpha"

responses.add(
responses.DELETE,
f"{mock_client_url}/v2/databases/{cluster_uuid}/dbs/{database_name}",
status = 204,
status=204,
)

resp = mock_client.databases.delete(cluster_uuid, database_name)

assert resp is None
assert resp is None


@responses.activate
Expand All @@ -90,17 +90,16 @@ def test_databases_delete_connection_pool(mock_client: Client, mock_client_url):

cluster_uuid = "9cc10173-e9ea-4176-9dbc-a4cee4c4ff30"

pool_name = 'backend-pool'
pool_name = "backend-pool"

responses.add(
responses.DELETE,
f"{mock_client_url}/v2/databases/{cluster_uuid}/pools/{pool_name}",
status = 204,
status=204,
)

resp = mock_client.databases.delete_connection_pool(cluster_uuid, pool_name)


assert resp is None


Expand All @@ -115,10 +114,10 @@ def test_databases_delete_online_migration(mock_client: Client, mock_client_url)
responses.add(
responses.DELETE,
f"{mock_client_url}/v2/databases/{cluster_uuid}/online-migration/{migration_id}",
status = 204,
status=204,
)

resp = mock_client.databases.delete_online_migration(cluster_uuid,migration_id)
resp = mock_client.databases.delete_online_migration(cluster_uuid, migration_id)

assert resp is None

Expand All @@ -129,16 +128,16 @@ def test_databases_delete_user(mock_client: Client, mock_client_url):

cluster_uuid = "9cc10173-e9ea-4176-9dbc-a4cee4c4ff30"

user_name = 'app-01'
user_name = "app-01"

responses.add(
responses.DELETE,
f"{mock_client_url}/v2/databases/{cluster_uuid}/users/{user_name}",
status = 204,
status=204,
)
resp = mock_client.databases.delete_user(cluster_uuid,user_name)

resp = mock_client.databases.delete_user(cluster_uuid, user_name)

assert resp is None


Expand All @@ -148,14 +147,14 @@ def test_databases_destroy_replica(mock_client: Client, mock_client_url):

cluster_uuid = "9cc10173-e9ea-4176-9dbc-a4cee4c4ff30"

replica_name = 'read_nyc_3'
replica_name = "read_nyc_3"

responses.add(
responses.DELETE,
f"{mock_client_url}/v2/databases/{cluster_uuid}/replicas/{replica_name}",
status = 204,
status=204,
)
resp = mock_client.databases.destroy_replica(cluster_uuid,replica_name)

resp = mock_client.databases.destroy_replica(cluster_uuid, replica_name)

assert resp is None

0 comments on commit bc58fc1

Please sign in to comment.