We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 81dc372 commit d1e08e6Copy full SHA for d1e08e6
test_ml.py
@@ -6,18 +6,6 @@
6
from ml.model import train_model, inference, compute_model_metrics
7
from ml.data import process_data
8
9
-from fastapi.testclient import TestClient
10
-
11
-# Import our app from main.py.
12
-from main import app
13
14
-# Instantiate the testing client with our app.
15
-client = TestClient(app)
16
17
-# Write tests using the same syntax as with the requests module.
18
-def test_api_locally_get_root():
19
- r = client.get("/")
20
- assert r.status_code == 200
21
22
# Synthetic data fixture
23
def get_sample_data():
0 commit comments