Skip to content

Commit

Permalink
Using unittest.mock instead of mock (#504)
Browse files Browse the repository at this point in the history
Also Running gql-cli --version test in subprocess mode to try to fix flaky test
  • Loading branch information
leszekhanusz authored Oct 28, 2024
1 parent 013eebd commit 57ef910
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
1 change: 0 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
"pytest-asyncio==0.21.1",
"pytest-console-scripts==1.3.1",
"pytest-cov==5.0.0",
"mock==4.0.2",
"vcrpy==4.4.0",
"aiofiles",
]
Expand Down
1 change: 1 addition & 0 deletions tests/test_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -370,6 +370,7 @@ def test_cli_get_transport_no_protocol(parser):
get_transport(args)


@pytest.mark.script_launch_mode("subprocess")
def test_cli_ep_version(script_runner):
ret = script_runner.run("gql-cli", "--version")

Expand Down
2 changes: 1 addition & 1 deletion tests/test_client.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import os
from contextlib import suppress
from unittest import mock

import mock
import pytest
from graphql import build_ast_schema, parse

Expand Down

0 comments on commit 57ef910

Please sign in to comment.