enforce max line length of 160 characters

This commit is contained in:
AlanCoding
2017-10-09 09:19:24 -04:00
parent d4af743805
commit f03b40aa50
19 changed files with 387 additions and 132 deletions

View File

@@ -87,7 +87,10 @@ class TestSubListCreateAttachDetachAPIView:
assert ret == mock_response_new
serializer.create.assert_called_with(mock_request, None, None)
mock_parent_relationship.wife.add.assert_called_with(get_object_or_400.return_value)
mock_response_new.assert_called_with(Response, create_return_value.data, status=status.HTTP_201_CREATED, headers={'Location': create_return_value['Location']})
mock_response_new.assert_called_with(
Response, create_return_value.data, status=status.HTTP_201_CREATED,
headers={'Location': create_return_value['Location']}
)
def test_attach_associate_only(self, mocker, get_object_or_400, parent_relationship_factory, mock_response_new):
(serializer, mock_parent_relationship) = parent_relationship_factory(SubListCreateAttachDetachAPIView, 'wife')