ruff: config and initial run
This commit is contained in:
parent
bb4965ab07
commit
903b24d17d
13 changed files with 31 additions and 37 deletions
|
|
@ -4,7 +4,7 @@
|
|||
import pytest
|
||||
from httpx import AsyncClient
|
||||
|
||||
from .conftest import default_client, generate_query_and_status
|
||||
from .conftest import generate_query_and_status
|
||||
|
||||
|
||||
@pytest.mark.anyio
|
||||
|
|
@ -38,7 +38,7 @@ async def test_post_service_success(default_client: AsyncClient):
|
|||
assert "service" in data
|
||||
assert data["service"]["name"] == "New Test Service"
|
||||
assert data["service"]["id"] == 2
|
||||
assert type(data["service"]["api_key"]) == str
|
||||
assert isinstance(data["service"]["api_key"], str)
|
||||
|
||||
|
||||
@pytest.mark.parametrize(
|
||||
|
|
@ -64,7 +64,7 @@ async def test_patch_service_success(default_client: AsyncClient):
|
|||
assert "service" in data
|
||||
assert data["service"]["name"] == "Test Service"
|
||||
assert data["service"]["id"] == 1
|
||||
assert type(data["service"]["api_key"]) == str
|
||||
assert isinstance(data["service"]["api_key"], str)
|
||||
|
||||
|
||||
@pytest.mark.parametrize(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue