-
Notifications
You must be signed in to change notification settings - Fork 41
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
need help to understand documentation #316
Comments
That being said, I also do not understand |
@rickwargo actually the If you want to run test on pre-existing data, you need to create a fixture that will populate the database with the data. Otherwise you risk tests meddling with other tests. |
Please enhance documentation with examples of how to use factories and the janitor in the context of actual test fixtures and tests, not just how to use the classes or methods with no test context. |
I guess one should just use |
@akaihola the basic postgresql fixture returns already configured connection. I've added hopefully better explanation to readme, however I've been using the code for so long, that it becomes obvious for me, and it's always hard to explain something obvious. Thank You guys for triggering me to bend my mind around the issue :) If you'll have more those obvious-not-obvious issues found, please let me know! :) |
Enhanced readme about postgresql fixture. refs - #316
Another useful example might be: How would I extend the |
@jcpunk apart from your feature, maybe I could link/copy example from other places like https://github.com/fizyk/pyramid_fullauth/blob/master/tests/conftest.py#L35 🤔 |
I'll confess, as someone who is not good at |
hi all,
Can any one explain me what are these tests files in tests dir of the source code ?
test_executor.py, test_janitor.py, test_noopexecutor.py
what is executor, janitor and noopexecutor? how can some one use these features in his testing?
I have used factories.postgresql_proc() and factories.postgresql() in my trial project and it is working fine. But not sure about
others. I find little difficult to understand the documentation as a pytest newbie.
-Thanks
The text was updated successfully, but these errors were encountered: