Skip to content

Audit SQLModel typing and test isolation (#201)#202

Merged
chriscarrollsmith merged 1 commit into
mainfrom
issue/201-audit-sqlmodel-typing-and-test-isolation
Jun 23, 2026
Merged

Audit SQLModel typing and test isolation (#201)#202
chriscarrollsmith merged 1 commit into
mainfrom
issue/201-audit-sqlmodel-typing-and-test-isolation

Conversation

@chriscarrollsmith

Copy link
Copy Markdown
Contributor

Summary

  • Add InstrumentedAttribute[Any] casts on all selectinload chains in utils/core/organizations.py per the SQLModel typing rule.
  • Introduce clear_all_rate_limiters() and a session-wide autouse fixture in tests/conftest.py that resets limiters before and after every test.
  • Remove duplicate module-local rate limiter reset fixtures from tests/test_htmx.py and tests/routers/core/test_account.py.

Closes #201

Test plan

  • uv run ty check .
  • uv run pytest tests

Made with Cursor

Add InstrumentedAttribute casts in organization loaders and a shared clear_all_rate_limiters helper with a session-wide autouse fixture so tests no longer carry duplicate reset logic.

Co-authored-by: Cursor <cursoragent@cursor.com>
@chriscarrollsmith
chriscarrollsmith merged commit f63bbdc into main Jun 23, 2026
2 checks passed
@chriscarrollsmith
chriscarrollsmith deleted the issue/201-audit-sqlmodel-typing-and-test-isolation branch June 23, 2026 17:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

audit sqlmodel typing and test isolation

1 participant