Skip to content
This repository has been archived by the owner on Oct 16, 2018. It is now read-only.

Fixed check for method not allowed, added extra tests #20

Closed
wants to merge 3 commits into from

Conversation

AltusBarry
Copy link
Contributor

No description provided.

@coveralls
Copy link

coveralls commented Oct 23, 2017

Coverage Status

Coverage increased (+0.1%) to 39.424% when pulling 0dd85f0 on feature/request-types-500-guard into 42e9fe7 on develop.

self.assertEqual(response.status_code, 404)

def test_request_method_options(self):
response = self.client.options("/four-o-four/")
# options
Copy link
Contributor

Choose a reason for hiding this comment

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

Rename the test to test_request_method_types please.

# Always return the get method's response, except if this view manages
# to trigger the method not allowed code path.
handler = super(SlotView, self).dispatch(request, *args, **kwargs)
if handler.status_code != 405:
Copy link
Contributor

Choose a reason for hiding this comment

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

What is 405?

Copy link
Contributor

Choose a reason for hiding this comment

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

Add a comment please.

@coveralls
Copy link

coveralls commented Oct 23, 2017

Coverage Status

Coverage increased (+0.1%) to 39.426% when pulling ad65a47 on feature/request-types-500-guard into 42e9fe7 on develop.

@hedleyroos
Copy link
Contributor

+1

@coveralls
Copy link

coveralls commented Oct 23, 2017

Coverage Status

Coverage increased (+0.1%) to 39.425% when pulling ad65a47 on feature/request-types-500-guard into 42e9fe7 on develop.

@AltusBarry AltusBarry closed this Oct 23, 2017
@AltusBarry AltusBarry deleted the feature/request-types-500-guard branch October 23, 2017 08:56
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.

None yet

3 participants