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

Commit ef76e96

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

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

tests/_sync/test_client.py

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

1515

16+
def test_retryable_request():
17+
with SyncPostgrestClient(
18+
"https://example_test.com", timeout=0.5, max_retries=2
19+
) as client:
20+
res = (
21+
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: SyncPostgrestClient):
1830
session = postgrest_client.session

0 commit comments

Comments
 (0)