Skip to content

Commit a4c04ba

Browse files
tmgbeduclaude
andcommitted
test(orm): move + convert model query tests to sqlite base TestCase
Relocate tests/masoniteorm/models/test_model_query.py to tests/masoniteorm/sqlite/models/test_sqlite_model_query.py and convert it from self-contained pytest fixtures to the shared sqlite TestCase. - Seed a third user (Alice) on top of the shared seeder's Joe/Jane and rewrite all 44 assertions against that 3-user dataset. - Narrow now-Optional first()/find() results with `assert ... is not None`. - Route exists tests through User.query().where(...). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent a8cd663 commit a4c04ba

4 files changed

Lines changed: 430 additions & 475 deletions

File tree

fastapi_startkit/tests/masoniteorm/fixtures/factory.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from fastapi_startkit.orm.factory.factory import Factory
1+
from fastapi_startkit.masoniteorm import Factory
22
from .model import User
33

44

0 commit comments

Comments
 (0)