Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Fix ClientForwardRefsPlugin imports and add tests #330

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

bombsimon
Copy link
Contributor

  • Add missing tests for ClientForwardRefsPlugin with and without combining with ShorterResultsPlugin.
  • Fix faulty imports
    • Store name and level separate to allow dots specified either on the module or via level. When importing just lookup what level and name to use.
    • Always use level 0 for TYPE_CHECKING_MODULE.

Fixes #314

- Add missing tests for `ClientForwardRefsPlugin` with and without
  combining with `ShorterResultsPlugin`.
- Fix faulty imports
  - Store name and level separate to allow dots specified either on the
    module or via level. When importing just lookup what level and name
    to use.
  - Always use level 0 for `TYPE_CHECKING_MODULE`.

Fixes mirumee#314
@bombsimon
Copy link
Contributor Author

Test failing due to spelling i test, should be resolved by #331

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.

ClientForwardRefs test clients not in fixture and tests not working
1 participant