Supress new flake8 error

This commit is contained in:
Bruno Alla 2025-10-14 08:24:41 +02:00
parent 282120ba44
commit ae5dc5f070

View File

@ -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)