velofy/tests
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Alexander Hess fc185fa3c0
All checks were successful
CI / Checks (Python 3.13) (push) Successful in 2m47s
Create the engine and the session on first use
The global `db.session` is now a `scoped_session`,
like, for example, in Flask-SQLAlchemy.

Importing the package no longer creates an engine;
so, the placeholder for the tests is obsolete.

The `db_session` fixture replaces `db.session` with `monkeypatch`
such that it is reset after each test.

Tests without the fixture get a placeholder that fails loudly
instead of opening a real session,
which would block the `DROP SCHEMA` at the end of the test run.
2026-12-02 00:23:41 +01:00
..
console Count rows with select() in the tests 2026-12-01 23:17:57 +01:00
db Create the engine and the session on first use 2026-12-02 00:23:41 +01:00
forecasts Query with select() in Grid and Path 2026-12-01 23:29:39 +01:00
__init__.py Check the type annotations at runtime with typeguard 2026-12-01 17:07:00 +01:00
config.py Import velofy.config as pkg_config everywhere 2026-11-30 20:19:35 +01:00
conftest.py Create the engine and the session on first use 2026-12-02 00:23:41 +01:00
test_config.py Use double quotes 2026-11-28 03:26:13 +01:00
test_init_r.py Enable PL in ruff 2026-11-30 22:28:12 +01:00
test_version.py Use double quotes 2026-11-28 03:26:13 +01:00