Fix minor HTML changes in tests Newer versions of sphinx now put
tags around various elements. Update the test_lists and CustomExtensionTests tests to expect that. Also do not expect a class="first" for the Contents in the CustomExtensionTests. Tested and appears to work with sphinx-2.4.4 and sphinx-3.2.1. diff --git a/tests/test_sphinx.py b/tests/test_sphinx.py index 06078b1..8f4acb2 100644 --- a/tests/test_sphinx.py +++ b/tests/test_sphinx.py @@ -142,17 +142,17 @@ class GenericTests(SphinxIntegrationTests): output = self.read_file('index.html') self.assertIn( ('
Item A
Item B
Item C
Item 1
Item 2
Item 3
data | ', output) + self.assertIn('abc | ', output)
+ self.assertIn('data | ', output)
self.assertIn('
---|