-
-
Notifications
You must be signed in to change notification settings - Fork 146
Major version increase? #204
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
Comments
Duplicate of #202 - keeping this open for now though. |
I see... sorry for the duplicate. Anyhow, @nicoddemus my test code also uses the type MockFixture to annotate arguments of fixtures such as the example code linked. |
Hi @staticdev,
No worries!
You can't upgrade because you intend to support older I think the only thing we can do to mitigate this is to add an alias, as you suggest, however I would prefer to avoid that because it is another thing to eventually deprecate/remove in the future. |
@nicoddemus I don't intend to support older pytest-mock. Personally, I would go for 4.0.0 and move on. |
Problem with that is that I see two scenarios:
So unless I'm missing something, releasing 4.0 will only bring more confusion than solving any real problem, I think. |
Doesn't (For the old <3.3.0) |
I pin all my versions. To solve everything you can rename and patch 3.3.0 with 3.3.1 (go back to previous MockFixture. The idea of alias, as you said, comes with more code to maintain. |
Indeed, but just a single line in this case. @graingert @staticdev please see #205. |
@nicoddemus very well.. that does the trick! So we can close this one. |
Feel free to leave your approval there. 😉 |
No I mean in @staticdev 's codebase you're not using |
@graingert want to take a look at #205 and see if I'm missing something? |
Hi,
I've seen 3.3.0 changed name from MockFixture to MockerFixture. It broke existing code like in:
https://github.com/staticdev/toml-validator/pull/157/checks?check_run_id=1020396590
I see at least two possible solutions here: increasing the major version to 4.0.0 to semantically say it broke original API or rename back (maybe even creating some alias to support both names).
The text was updated successfully, but these errors were encountered: