This repository has been archived on 2024-07-19. You can view files and clone it, but cannot push or open issues or pull requests.
rotini/backend/tests/test_api_files.py
Marc Cataford a341b462c7
build(backend): add db-aware testing tooling (#9)
* 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
2023-08-12 11:45:51 -04:00

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)