Skip to content
This repository was archived by the owner on Sep 8, 2025. It is now read-only.

Commit 70d0c50

Browse files
feat: add retryable test
1 parent 4b2d36a commit 70d0c50

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

tests/_async/test_client.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,18 @@ async def postgrest_client():
1313
yield client
1414

1515

16+
async def test_retryable_request():
17+
async with AsyncPostgrestClient(
18+
"https://example_test.com", timeout=0.5, max_retries=2
19+
) as client:
20+
res = (
21+
await client.from_("countries")
22+
.select("country_name, iso")
23+
.in_("nicename", ["Albania", "Algeria"])
24+
.execute()
25+
)
26+
27+
1628
class TestConstructor:
1729
def test_simple(self, postgrest_client: AsyncPostgrestClient):
1830
session = postgrest_client.session

0 commit comments

Comments
 (0)