fix pytest-django dep skip issue on fastapi project#11
Merged
Conversation
There was a problem hiding this comment.
Pull Request Overview
This PR fixes how pytest-django tests are skipped when the plugin is missing, bumps the package version, and updates examples/docs to clarify optional pytest-django integration.
- Use an explicit pytest-django marker for skipping tests
- Bump version from 0.2.0 to 0.2.1
- Clarify and enhance example usage and README instructions for optional pytest-django integration
Reviewed Changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| py_pglite/pytest_plugin.py | Change marker name for pytest-django skip check |
| py_pglite/init.py | Bump package version to 0.2.1 |
| examples/testing-patterns/django/test_pytest_django.py | Update example docstring and comments for optional integration |
| examples/README.md | Add commands for both basic Django tests and pytest-django usage |
Comments suppressed due to low confidence (1)
examples/testing-patterns/django/test_pytest_django.py:122
- [nitpick] Mixing Chinese and English in code comments may confuse readers. Consider using a single language consistently for example comments.
# Django tests (基础用法)
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #11 +/- ##
=======================================
Coverage 20.64% 20.64%
=======================================
Files 15 15
Lines 1114 1114
=======================================
Hits 230 230
Misses 884 884 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
dd7a0a2 to
6b251d0
Compare
2857773 to
83ff2de
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
as titled...