-
Notifications
You must be signed in to change notification settings - Fork 345
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
Prefix new fixtures with "django_"/"dj_" #432
Comments
Good idea... Alternative dj_mailoutbox, just a shorter version... This is something I have been thinking about when using some of the fixtures... |
Yes, a shorter prefix makes sense. So 👍 for |
Maybe rename all public fixtures, and keep the old ones as aliases for a On Mon, Nov 21, 2016 at 10:51 PM Daniel Hahler [email protected]
|
👍 We (@blueyed and me) discussed this during the pytest sprint. I forgot about it when reviewing the mailoutbox fixture. :/ Keeping aliases for quite some time and emit pytest warnings from them would be a good way to proceed. :) |
But related to dj_ vs django_: as you already have quite many fixtures named "correctly" with django_, maybe make sense to keep it? As well as markers... |
vs
|
I have two opinions:
That way, in the next few versions, the old fixtures will be phased out completely, and everything will be consistent for users, and also easier to maintain on pytest-django side. |
Good point. Let's go with |
Yes, they should be changed. However, I am not really confident: it means to change / migrate all existing fixtures - saving 4 characters per use of them only. |
Okay, so I'll hold off updating #568 to
That is an inconsistency and it's noted. I'm not a big fan of The reason I recommend So that's my rationale/vote/opinion on it. |
Ref: pytest-dev/pytest#4900. I had a quick go on adding a "django_" prefix for all existing fixtures, while still providing the old name. |
@blueyed Was there any progress on this? |
IIRC we agreed to make fixture names more explicit / namespaced, e.g.
django_mailoutbox
.This should be done for new fixtures at least.
The text was updated successfully, but these errors were encountered: