We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aa7e7f9 commit 177a100Copy full SHA for 177a100
tests/test_exceptions.py
@@ -203,11 +203,13 @@ def test_metadata_too_large(
203
204
205
def test_request_time_too_skewed(client: VWS) -> None:
206
+ # TODO Use a flask-based mock so it is not affected by the time freeze
207
+ # or :( monkeypatch the time getting thing
208
vws_max_time_skew = timedelta(minutes=5)
209
leeway = timedelta(seconds=10)
210
time_difference_from_now = vws_max_time_skew + leeway
211
gmt = pytz.timezone('GMT')
212
with freeze_time(datetime.now(tz=gmt) + time_difference_from_now):
- client.list_targets()
213
+ client.get_target_record(target_id='a')
214
# with pytest.raises(RequestTimeTooSkewed):
215
# pass
0 commit comments