pytest-dev / pytest-django

A Django plugin for pytest.
https://pytest-django.readthedocs.io/
Other
1.32k stars 341 forks source link

Convert Django test tags to Pytest markers #1081

Closed bluetech closed 8 months ago

bluetech commented 8 months ago

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.