-
Notifications
You must be signed in to change notification settings - Fork 42
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
Use pytest-django for testing #119
Comments
Hey @abhiabhi94, Can you please fill Proposed Changes section? |
Other proposed changes is whatever it takes to implement this. There is nothing more that comes to my mind as of now. Feel free to give any suggestions. |
Hey @Radi85, apart from allowing the import lines to be shorter, is there a reason to add the directory Lines 7 to 8 in 04dfb4f
Modifying python-path will require us to use another pytest plugin, This is not a great deal but just wanted to run this through you before adding it. |
As you previously mentioned, using pytest will enhance the test performance by hitting the DB when only needed. Something like this would be sufficient |
Yes because |
yes, I do understand that. What I meant was: Currently we do: from post.models import Post Had we not added this path, we would have to do: from test.example.post.models import Post |
I am not sure that would work since |
It is recognized. Line 6 in 04dfb4f
But as of now, this change will require changes to a lot of places now, specifically for all imports and |
Should I include #112 in this? As it is I will have to change the If yes, in place of python3.8, should be just test python3.9 since it is out now? |
Yes for both. |
- also fix some tests that required patching settings. - reducing time for tox tests by running it for lesser environments(still cover all versions) - add support for python3.9 fix Radi85#119 fix Radi85#112
- also fix some tests that required patching settings. - reducing time for tox tests by running it for lesser environments(still cover all versions) - add support for python3.9 fix Radi85#119 fix Radi85#112
- also fix some tests that required patching settings. - reducing time for tests running on travis by running them for lesser environments(still cover all versions) - add support for python3.9 fix Radi85#119 fix Radi85#112
- also fix some tests that required patching settings. - reducing time for tests running on travis by running them for lesser environments(still cover all versions) - add support for python3.9 fix Radi85#119 fix Radi85#112
- also fix some tests that required patching settings. - reducing time for tests running on travis by running them for lesser environments(still cover all versions) - add support for python3.9 fix Radi85#119 fix Radi85#112
Change Type
[ ] Refactor/Enhancement
[x] Testing
[ ] CI/CD
[ ] Other
Proposed Changes
TestCase
are implicitly given the database access.)assert
statement without having to rememberassertEqual
.assertDictEqual
etcpytest
can be utilized.pytest
command.The text was updated successfully, but these errors were encountered: