From 1cb35ac48a711f5f5493fe1a8cbaf36b2e0e1c48 Mon Sep 17 00:00:00 2001 From: def Date: Thu, 1 Sep 2022 21:04:48 +0200 Subject: [PATCH] fix job tests --- tests/test_graphql/test_job.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/test_graphql/test_job.py b/tests/test_graphql/test_job.py index f5fd5834..8216f1a4 100644 --- a/tests/test_graphql/test_job.py +++ b/tests/test_graphql/test_job.py @@ -51,7 +51,7 @@ mutation removeJob($sshInput: SshMutationInput!) { """ -def test_graphql_remove_job_unauthorized(client, some_users, mock_subprocess_popen, mock_jobs): +def test_graphql_remove_job_unauthorized(client, mock_subprocess_popen, mock_jobs): response = client.post( "/graphql", json={ @@ -68,7 +68,7 @@ def test_graphql_remove_job_unauthorized(client, some_users, mock_subprocess_pop assert response.json().get("data") is None -def test_graphql_remove_job(authorized_client, some_users, mock_subprocess_popen, mock_jobs): +def test_graphql_remove_job(authorized_client, mock_subprocess_popen, mock_jobs): response = authorized_client.post( "/graphql", json={ @@ -85,7 +85,7 @@ def test_graphql_remove_job(authorized_client, some_users, mock_subprocess_popen assert response.json()["data"]["removeJob"]["message"] is not None assert response.json()["data"]["removeJob"]["success"] is True -def test_graphql_remove_job_not_found(authorized_client, some_users, mock_subprocess_popen, mock_jobs_return_false): +def test_graphql_remove_job_not_found(authorized_client, mock_subprocess_popen, mock_jobs_return_false): response = authorized_client.post( "/graphql", json={