Unverified Commit 655bff35 authored by Dan Jones's avatar Dan Jones
Browse files

test: remove duplicate test

parent 8dcae84f
...@@ -66,25 +66,6 @@ def test_put_client_1(mock_clients): ...@@ -66,25 +66,6 @@ def test_put_client_1(mock_clients):
assert "secret" in response.json assert "secret" in response.json
@pytest.mark.usefixtures("mock_clients")
def test_put_client_1(mock_clients):
app = create_app()
with patch(
"builtins.open", mock_open(read_data=json.dumps(mock_clients))
) as mock_file_open, app.test_client() as app_test_client:
response = app_test_client.get("/client/client-1")
client_1 = response.json
print(client_1)
client_1["subscription"] = "soar.client-1.#"
response = app_test_client.put("/client/client-1", json=client_1)
assert response.status_code == 201
assert "client_id" in response.json
assert response.json["client_id"] == "client-1"
assert response.json["subscription"] == "soar.client-1.#"
assert "client_name" in response.json
assert "secret" in response.json
@pytest.mark.usefixtures("mock_clients") @pytest.mark.usefixtures("mock_clients")
def test_delete_client_1(mock_clients): def test_delete_client_1(mock_clients):
app = create_app() app = create_app()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment