-
Notifications
You must be signed in to change notification settings - Fork 5
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
Better testing #3
Comments
WIP tox.ini
|
Leaving the tests pending until scivey#3
what would a basic pytest setup to replace this look like? I'm assuming we'd need to write some kind of adapter. |
It's been a while but IIRC you have a custom test runner so you can on cli instruct it to use either real rethink or mockthink as the connection object? It will be a small pytest plugin (defined in a conftest.py) as I describe above. The tests would be changed to accept a connection fixture as a parameter, the fixture being also defined in conftest.py and using the cli argument that the plugin provides, so that you can do |
@Daenyth sounds like you just volunteered! |
When I have time. |
Prep for full fix of scivey#3
@Daenyth did your merged-in PR cover this? |
Yes, we can close this |
Is this mockthink lib compatible with python 2.7?? |
conn
fixture can examine the contents of that arg flag to decide whether to run tests on mockthink connection, rethink connection, or bothThe text was updated successfully, but these errors were encountered: