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

Convert Django test tags to Pytest markers #1081

Merged
merged 1 commit into from
Oct 30, 2023

Conversation

bluetech
Copy link
Member

Django TestCase supports tags:
https://docs.djangoproject.com/en/4.2/topics/testing/tools/#topics-tagging-tests These are basically similar to (basic) Pytest tags, so let's interpret them to allow using the native pytest-native markers functionality. This helps projects which are unable to convert tags to markers.

This may cause breakage for projects using strict-markers. Such projects would need to add the tags to their markers config, or deal with it some other way.

Fix #818.

Django TestCase supports tags:
https://docs.djangoproject.com/en/4.2/topics/testing/tools/#topics-tagging-tests
These are basically similar to (basic) Pytest tags, so let's interpret
them to allow using the native pytest-native markers functionality.
This helps projects which are unable to convert tags to markers.

This may cause breakage for projects using `strict-markers`. Such
projects would need to add the tags to their `markers` config, or deal
with it some other way.

Fix pytest-dev#818.
@bluetech bluetech merged commit 967618e into pytest-dev:master Oct 30, 2023
15 checks passed
@bluetech bluetech deleted the django-tags-to-markers branch October 30, 2023 07:04
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.

Is Django Testing Tags Supported?
1 participant