chore: remove CI workflow file and update test files for improved structure and functionality
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
from fastapi.testclient import TestClient
|
||||
|
||||
from main import app
|
||||
from scripts.init_db import init_db
|
||||
|
||||
|
||||
def test_login_form_post_does_not_trigger_json_error():
|
||||
@@ -8,6 +9,7 @@ def test_login_form_post_does_not_trigger_json_error():
|
||||
the JSON "Invalid JSON payload" error which indicates the middleware
|
||||
attempted to parse non-JSON bodies.
|
||||
"""
|
||||
init_db()
|
||||
client = TestClient(app)
|
||||
|
||||
resp = client.post(
|
||||
|
||||
Reference in New Issue
Block a user