Marc Cataford
a341b462c7
* fix(backend): centralized settings, fix refs * build(backend): pytest configuration points at the right path * build(backend): test tooling script * ci(backend): use taskfile to trigger tests in ci * test(backend): stub db-test * ci(backend): use Task for backend steps, remove redundant bootstrap
15 lines
235 B
Python
15 lines
235 B
Python
from fastapi.testclient import TestClient
|
|
import pytest
|
|
|
|
from rotini.main import app
|
|
|
|
|
|
@pytest.fixture()
|
|
def client():
|
|
return TestClient(app)
|
|
|
|
|
|
def test_list_files(client):
|
|
response = client.get("/files/")
|
|
|
|
print(response)
|