mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-26 11:33:59 +03:00
added fixes
This commit is contained in:
parent
f5a900a404
commit
10b5f36fec
|
@ -530,8 +530,9 @@ class TestFilterBackendAppliedToViews(TestCase):
|
||||||
view = DynamicSerializerView.as_view()
|
view = DynamicSerializerView.as_view()
|
||||||
request = factory.get('/')
|
request = factory.get('/')
|
||||||
response = view(request).render()
|
response = view(request).render()
|
||||||
self.assertContains(response, 'field_b')
|
content = response.content.decode('utf8')
|
||||||
self.assertNotContains(response, 'field_a')
|
assert 'field_b' in content
|
||||||
|
assert 'field_a' not in content
|
||||||
|
|
||||||
|
|
||||||
class TestGuardedQueryset(TestCase):
|
class TestGuardedQueryset(TestCase):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user