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 e00d657 commit d17e103Copy full SHA for d17e103
tests/test_database.py
@@ -174,11 +174,12 @@ async def test_database_misc_methods(
174
response = await sys_db.request(request)
175
assert json.loads(response.raw_body) == 1
176
177
- # API calls
178
- with pytest.raises(ServerApiCallsError):
179
- await bad_db.api_calls()
180
- result = await sys_db.api_calls()
181
- assert isinstance(result, dict)
+ if db_version >= version.parse("3.12.0"):
+ # API calls
+ with pytest.raises(ServerApiCallsError):
+ await bad_db.api_calls()
+ result = await sys_db.api_calls()
182
+ assert isinstance(result, dict)
183
184
185
@pytest.mark.asyncio
0 commit comments