Skip to content

Commit 4800c43

Browse files
committed
Add httpx_mock setting for test_cli.py
1 parent da5ed4c commit 4800c43

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tests/unit/ctl/test_cli.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
1+
import pytest
12
from typer.testing import CliRunner
23

34
from infrahub_sdk.ctl.cli import app
45

56
runner = CliRunner()
67

8+
pytestmark = pytest.mark.httpx_mock(can_send_already_matched_responses=True)
9+
710

811
def test_main_app():
912
result = runner.invoke(app, ["--help"])

0 commit comments

Comments
 (0)