#33454: Django4 does not pick up tests according to tags.
-----------------------------------+--------------------------------------
Reporter: Thorben Luepkes | Owner: nobody
Type: Bug | Status: closed
Component: Testing framework | Version: 4.0
Severity: Normal | Resolution: invalid
Keywords: | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-----------------------------------+--------------------------------------
Comment (by Thorben Luepkes):
Replying to [comment:3 Mariusz Felisiak]:
> Thanks for the report. This behavior was changed intentionally in
038940cf5525c41464a1b9e9ba3801042320b0cc. Previously tests that failed to
load did not match tags. I was able to fix the attached project
(`django4-testrunner`) by:
> - removing the
[https://github.com/Thorbenl/django4-testrunner/blob/main/django4_testrunner/__init__.py
__init__.py] file from `django4_testrunner`,
> - changing imports from `django4_testrunner.default.market_settings` to
`default.market_settings`.
>
> It looks like an issue in your code.
This seems like a weird change to make to me?
Why would you change the way tags work?
Of course it is a problem in our code somehow, but cant there be a setting
so we can revert it?
I would really like to be able to share the whole codebase, but as you
might know, thats not really possible. We serve two different markets with
the same codebase, and have market specific tests: Main market runs 1000
tests, and market b just runs 27 tests that are specific to that market.
But due to the change to tags, the test-suit tries to include apps into
the test that arent in `INSTALLED_APPS`. I have dumped out the variable
during the test, and it does not have the apps where the error is thrown
even included.
--
Ticket URL: <https://code.djangoproject.com/ticket/33454#comment:4>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/066.04a6b00e926a1161cf68ed2b1f2097e4%40djangoproject.com.