File tree Expand file tree Collapse file tree 6 files changed +23
-16
lines changed
Expand file tree Collapse file tree 6 files changed +23
-16
lines changed Original file line number Diff line number Diff line change @@ -42,7 +42,8 @@ async def assertion() -> None:
4242@pytest .mark .asyncio
4343async def test_dlq_get_and_delete_async (async_client : AsyncQStash ) -> None :
4444 res = await async_client .message .publish_json (
45- url = "http://httpstat.us/404" ,
45+ method = "GET" ,
46+ url = "https://mock.httpstatus.io/404" ,
4647 retries = 0 ,
4748 )
4849
@@ -56,7 +57,8 @@ async def test_dlq_get_and_delete_many_async(async_client: AsyncQStash) -> None:
5657 msg_ids = []
5758 for _ in range (5 ):
5859 res = await async_client .message .publish_json (
59- url = "http://httpstat.us/404" ,
60+ method = "GET" ,
61+ url = "https://mock.httpstatus.io/404" ,
6062 retries = 0 ,
6163 )
6264
@@ -69,7 +71,8 @@ async def test_dlq_get_and_delete_many_async(async_client: AsyncQStash) -> None:
6971@pytest .mark .asyncio
7072async def test_dlq_filter_async (async_client : AsyncQStash ) -> None :
7173 res = await async_client .message .publish_json (
72- url = "http://httpstat.us/404" ,
74+ method = "GET" ,
75+ url = "https://mock.httpstatus.io/404" ,
7376 retries = 0 ,
7477 )
7578
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ async def test_url_group_async(async_client: AsyncQStash) -> None:
1212 url_group = name ,
1313 endpoints = [
1414 {"url" : "https://mock.httpstatus.io/200" },
15- {"url" : "https://httpstat.us /201" },
15+ {"url" : "https://mock.httpstatus.io /201" },
1616 ],
1717 )
1818
@@ -21,7 +21,7 @@ async def test_url_group_async(async_client: AsyncQStash) -> None:
2121 assert any (
2222 True for e in url_group .endpoints if e .url == "https://mock.httpstatus.io/200"
2323 )
24- assert any (True for e in url_group .endpoints if e .url == "https://httpstat.us /201" )
24+ assert any (True for e in url_group .endpoints if e .url == "https://mock.httpstatus.io /201" )
2525
2626 url_groups = await async_client .url_group .list ()
2727 assert any (True for ug in url_groups if ug .name == name )
@@ -30,7 +30,7 @@ async def test_url_group_async(async_client: AsyncQStash) -> None:
3030 url_group = name ,
3131 endpoints = [
3232 {
33- "url" : "https://httpstat.us /201" ,
33+ "url" : "https://mock.httpstatus.io /201" ,
3434 }
3535 ],
3636 )
@@ -41,5 +41,5 @@ async def test_url_group_async(async_client: AsyncQStash) -> None:
4141 True for e in url_group .endpoints if e .url == "https://mock.httpstatus.io/200"
4242 )
4343 assert not any (
44- True for e in url_group .endpoints if e .url == "https://httpstat.us /201"
44+ True for e in url_group .endpoints if e .url == "https://mock.httpstatus.io /201"
4545 )
Original file line number Diff line number Diff line change @@ -37,7 +37,8 @@ def assertion() -> None:
3737
3838def test_dlq_get_and_delete (client : QStash ) -> None :
3939 res = client .message .publish_json (
40- url = "http://httpstat.us/404" ,
40+ method = "GET" ,
41+ url = "https://mock.httpstatus.io/404" ,
4142 retries = 0 ,
4243 retry_delay = "7000 * retried" ,
4344 )
@@ -51,7 +52,8 @@ def test_dlq_get_and_delete_many(client: QStash) -> None:
5152 msg_ids = []
5253 for _ in range (5 ):
5354 res = client .message .publish_json (
54- url = "http://httpstat.us/404" ,
55+ method = "GET" ,
56+ url = "https://mock.httpstatus.io/404" ,
5557 retries = 0 ,
5658 retry_delay = "7000 * retried" ,
5759 )
@@ -64,7 +66,8 @@ def test_dlq_get_and_delete_many(client: QStash) -> None:
6466
6567def test_dlq_filter (client : QStash ) -> None :
6668 res = client .message .publish_json (
67- url = "http://httpstat.us/404" ,
69+ method = "GET" ,
70+ url = "https://mock.httpstatus.io/404" ,
6871 retries = 0 ,
6972 retry_delay = "7000 * retried" ,
7073 )
Original file line number Diff line number Diff line change @@ -284,11 +284,12 @@ def test_publish_to_url_group(client: QStash) -> None:
284284 url_group = name ,
285285 endpoints = [
286286 {"url" : "https://mock.httpstatus.io/200" },
287- {"url" : "https://httpstat.us /201" },
287+ {"url" : "https://mock.httpstatus.io /201" },
288288 ],
289289 )
290290
291291 res = client .message .publish (
292+ method = "GET" ,
292293 body = "test-body" ,
293294 url_group = name ,
294295 )
Original file line number Diff line number Diff line change @@ -50,5 +50,5 @@ def test_failed_verification(receiver: Receiver) -> None:
5050 receiver .verify (
5151 signature = sig ,
5252 body = body ,
53- url = "https://httpstat.us /201" ,
53+ url = "https://mock.httpstatus.io /201" ,
5454 )
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ def test_url_group(client: QStash) -> None:
99 url_group = name ,
1010 endpoints = [
1111 {"url" : "https://mock.httpstatus.io/200" },
12- {"url" : "https://httpstat.us /201" },
12+ {"url" : "https://mock.httpstatus.io /201" },
1313 ],
1414 )
1515
@@ -18,7 +18,7 @@ def test_url_group(client: QStash) -> None:
1818 assert any (
1919 True for e in url_group .endpoints if e .url == "https://mock.httpstatus.io/200"
2020 )
21- assert any (True for e in url_group .endpoints if e .url == "https://httpstat.us /201" )
21+ assert any (True for e in url_group .endpoints if e .url == "https://mock.httpstatus.io /201" )
2222
2323 url_groups = client .url_group .list ()
2424 assert any (True for ug in url_groups if ug .name == name )
@@ -27,7 +27,7 @@ def test_url_group(client: QStash) -> None:
2727 url_group = name ,
2828 endpoints = [
2929 {
30- "url" : "https://httpstat.us /201" ,
30+ "url" : "https://mock.httpstatus.io /201" ,
3131 }
3232 ],
3333 )
@@ -38,5 +38,5 @@ def test_url_group(client: QStash) -> None:
3838 True for e in url_group .endpoints if e .url == "https://mock.httpstatus.io/200"
3939 )
4040 assert not any (
41- True for e in url_group .endpoints if e .url == "https://httpstat.us /201"
41+ True for e in url_group .endpoints if e .url == "https://mock.httpstatus.io /201"
4242 )
You can’t perform that action at this time.
0 commit comments