-
Notifications
You must be signed in to change notification settings - Fork 169
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
[chores] Fixed tests for sample_users #556
Conversation
- Minor changes to CI configuration to ensure correct version of Django in the Python environment.
d3161dc
to
a1e5653
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@pandafy can you please investigate why the build is failing due to some coverage/coveralls library issue?
We are affected by TheKevJames/coveralls-python#326 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
After I updated requirements-tests.txt, it looks like executed queries are less than expected.
The pytest-cov lib doesn't cap the coverage version, breaking coveralls.
Unfortunately we need to add an explicit pin to coverage because of pytest-cov. No big deal. But it seems the latest version of openwisp-utils was not being used in tests, because some query tests fail. It seems less queries are executed now, which may be good. |
The number of queries are going down due to the recent changes done in openwisp-notifications. |
@@ -441,6 +441,6 @@ def test_delete_deviceconnection_detail(self): | |||
dc = self._create_device_connection() | |||
d1 = dc.device.id | |||
path = reverse('connection_api:deviceconnection_detail', args=(d1, dc.pk)) | |||
with self.assertNumQueries(10): | |||
with self.assertNumQueries(7): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have made this change just for the sake of build to pass. We probably have to revert this in #558
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The number of queries are going down due to the recent changes done in openwisp-notifications.
Ah ok, thanks for clarifying!
I have made this change just for the sake of build to pass. We probably have to revert this in #558
No problem, let's do it.
of Django in the Python environment.