Skip to content

test: DialectContext duplicates strawchemy.testing.MockContext #402

Closed

Description

@gazorby

Once #399 is fixed, MockContext (src/strawchemy/testing/__init__.py) builds a mocked session whose bind reports the given dialect. DialectContext in tests/unit/utils.py does the same job, but builds its mocks with spec=.

Two options:

  • replace DialectContext with MockContext in the unit tests
  • give MockContext the stricter spec= mocks, then drop DialectContext

Either way, one implementation is left.

Activity

  1. added a commit that references this issue on Oct 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions