import pytest from fastapi.testclient import TestClient from main import app client = TestClient(app) def test_add_user(): response = client.post( "/users", headers={"Content-Type": "application/json"}, json={"username": "Lukas", "password": "mettn"}, ) assert response.status_code == 200