Skip to content
This repository has been archived by the owner on Jun 27, 2020. It is now read-only.

Add support for django 1.11 #23

Merged
merged 1 commit into from
Apr 27, 2017

Conversation

rohithasrk
Copy link
Contributor

No description provided.

@coveralls
Copy link

coveralls commented Apr 27, 2017

Coverage Status

Coverage remained the same at 100.0% when pulling 548eec4 on rohithasrk:django-1.11-support into ce45caa on netjson:master.

@coveralls
Copy link

coveralls commented Apr 27, 2017

Coverage Status

Coverage remained the same at 100.0% when pulling 18790ec on rohithasrk:django-1.11-support into ce45caa on netjson:master.

Copy link
Member

@nemesifier nemesifier left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See inline comments

@@ -31,5 +32,5 @@ def test_detail_uuid_exception(self):
"""
see https://github.com/interop-dev/django-netjsongraph/issues/4
"""
response = self.client.get('/topology/a083b494-8e16-4054-9537-fb9eba914861-wrong/')
response = get_topology_or_404('/topology/a083b494-8e16-4054-9537-fb9eba914861-wrong/')
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you shall not change this line

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see. Does self.client.get automatically call get_topology_or_404?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

self.client.get simulates an HTTP request to the view, see the django docs regarding the test client

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh. I see

@@ -61,5 +62,5 @@ def get_topology_or_404(pk, **kwargs):
})
try:
return get_object_or_404(Topology, **kwargs)
except ValueError:
except (ValidationError, ValueError) as e:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

don't add as e, is not needed here

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes. Will remove

@coveralls
Copy link

coveralls commented Apr 27, 2017

Coverage Status

Coverage remained the same at 100.0% when pulling c258d7a on rohithasrk:django-1.11-support into ce45caa on netjson:master.

@nemesifier nemesifier merged commit 1b68e44 into openwisp:master Apr 27, 2017
@rohithasrk rohithasrk deleted the django-1.11-support branch April 27, 2017 13:37
@rohithasrk rohithasrk changed the title [WIP] Add support for django 1.11 Add support for django 1.11 Apr 27, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants