mirror of
https://github.com/almet/copanier.git
synced 2025-04-28 11:32:38 +02:00
16 lines
355 B
Python
16 lines
355 B
Python
import pytest
|
|
|
|
|
|
pytestmark = pytest.mark.asyncio
|
|
|
|
|
|
async def test_empty_home(client):
|
|
resp = await client.get('/')
|
|
assert resp.status == 200
|
|
|
|
|
|
async def test_home_should_list_active_delivery(client, delivery):
|
|
delivery.persist()
|
|
resp = await client.get('/')
|
|
assert resp.status == 200
|
|
assert delivery.producer in resp.body.decode()
|