-
Notifications
You must be signed in to change notification settings - Fork 40
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
Compatibility issues with pytest-factoryboy #55
Comments
This is unfortunately a limitation of changing the whole fixture system but not merging back this feature into I can try to provide a fix, but to do this I have to better understand what factoryboy is trying to do here. Can you provide me with an example test where the factoryboy functionality is actually used ? For the long term, if you actually use the fixture reference and/or fixture unions feature a lot, please ask for it to be considered into pytest in pytest-dev/pytest#349 |
The tests don't matter. The mere existence of |
I know but... to fix it it matters :) Indeed the only thing I can do right now is to cancel everything Since I have no idea of how factoryboy works, could you help me with providing an extremely tiny example of a test using it ? That way, the
(you can even check that it is not empty before posting, by putting a breakpoint on that line) Thanks a lot for your help ! Then I'll be able to investigate |
As it turns out, But for this issue's sake, you can consider the test from here
|
Thanks ! Unfortunately this example does not work ( If you are familiar with the project, can you please guide me here ? |
I tested it again with pytest-cases v1.11.1. The problem seems that my fixtures are in |
I do not understand what you mean, sorry :) . Do you mean that the issue is not actually solved by 1.11.1 and should be reopened ? If so please provide a reproducible example. Otherwise, could you still provide a reproducible example of Thanks a lot, I really can't start to work on fixing anything if I have no means to reproduce, and as of now I am quite unable to reproduce any of the scenarios you mention (except the one that I fixed, where factoryboy was not used at all so the fix was trivial). |
I realized that my fix was never released, I do not know what happened in my mind that day... the version I was mentioning was 1.11.2. Very sorry for that, I'll release it now. |
Hello,
Thanks for creating this extremely useful plugin.
I get thrown an error when I try running pytest when 'pytest-cases' and 'pytest-factoryboy' both are installed.
The tests run fine if either 'pytest-cases' or 'pytest-factoryboy' is installed but not both.
What can be the issue?
The text was updated successfully, but these errors were encountered: