mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-10-22 19:54:50 +03:00
Supress new flake8 error
This commit is contained in:
parent
282120ba44
commit
ae5dc5f070
|
@ -39,7 +39,7 @@ class TestLazyHyperlinkNames(TestCase):
|
||||||
self.example = Example.objects.create(text='foo')
|
self.example = Example.objects.create(text='foo')
|
||||||
|
|
||||||
def test_lazy_hyperlink_names(self):
|
def test_lazy_hyperlink_names(self):
|
||||||
global str_called
|
global str_called # noqa: F824
|
||||||
context = {'request': None}
|
context = {'request': None}
|
||||||
serializer = ExampleSerializer(self.example, context=context)
|
serializer = ExampleSerializer(self.example, context=context)
|
||||||
JSONRenderer().render(serializer.data)
|
JSONRenderer().render(serializer.data)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user