mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-08-04 12:30:11 +03:00
Docs: add a test that there are sidebar links
This commit is contained in:
parent
699a5eec68
commit
da2fb5a7f6
|
@ -53,3 +53,7 @@ class TestRecursiveUrlViewSets(TestCase):
|
|||
'$ coreapi action {} retrieve_alt {}'.format(' '.join(route), method) in self.content,
|
||||
'unable to find shell code snippet for {}'.format(subpath)
|
||||
)
|
||||
self.assertTrue(
|
||||
re.search('<li><a href="#{}"[^>]*>\s*{}'.format(subpath, method), self.content),
|
||||
'unable to find sidebar link for {}'.format(subpath)
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue
Block a user