Skip to content

Testing

Run all tests

1
pytest -q

Run fast subset (default) vs full suite

The test suite skips long-running tests by default. To run the full suite:

1
pytest -q --full

Run specific tests/files

1
2
pytest -q tests/tabular_automl/test_modules.py::test_trainer_init
pytest -q tests/tabular_automl/test_services.py

Notes

  • Tests isolate filesystem operations using tmp_path and mock/monkeypatch database sessions to an in-memory SQLite engine.
  • HTTP endpoint tests use fastapi.testclient.TestClient and monkeypatch service-layer functions to avoid heavy training runs.

Development

  • Useful scripts:
  • mk_sample_data.sh: helpers for sample data.
  • test_services.sh: quick test runner.