Skip to content

Commit ad5e9e8

Browse files
fix tests
1 parent dd30f09 commit ad5e9e8

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

tests/v2/input/test_local_response.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ def file_path() -> Path:
1414

1515
def _assert_local_response(local_response):
1616
fake_hmac_signing = "ogNjY44MhvKPGTtVsI8zG82JqWQa68woYQH"
17-
signature = "b9c2dfc67c2ba457603dd9880d45f089ae79b95bf6389b4a4387ef255c924fe7"
17+
signature = "b82a515c832fd2c4f4ce3a7e6f53c12e8d10e19223f6cf0e3a9809a7a3da26be"
1818

1919
assert local_response._file is not None
2020
assert not local_response.is_valid_hmac_signature(

tests/v2/test_client.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,13 @@ def _fake_ok_get_inference(*args, **kwargs):
100100
return ClientV2("dummy")
101101

102102

103+
@pytest.fixture
104+
def env_no_key(monkeypatch):
105+
monkeypatch.delenv("MINDEE_V2_API_KEY")
106+
107+
103108
@pytest.mark.v2
104-
def test_parse_path_without_token():
109+
def test_parse_path_without_token(env_no_key):
105110
with pytest.raises(MindeeApiV2Error):
106111
ClientV2()
107112

0 commit comments

Comments
 (0)