Skip to content

Commit

Permalink
don't test for instance_attributes with sphinx=3.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Chilipp committed Jul 13, 2020
1 parent acd3795 commit abd03e3
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions tests/test_autodocsumm.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,9 +118,10 @@ def test_class(self, app, status, warning):
app.build()
html = get_html(app, '/test_class.html')

self.assertIn(
'<span class="pre">dummy.TestClass.instance_attribute</span>',
html)
if sphinx_version[:2] != [3, 1]:
self.assertIn(
'<span class="pre">dummy.TestClass.instance_attribute</span>',
html)

self.assertIn('<span class="pre">test_method</span>', html)
self.assertIn('<span class="pre">test_attr</span>', html)
Expand Down Expand Up @@ -160,9 +161,10 @@ def test_class_summary_only(self, app, status, warning):
app.build()
html = get_html(app, '/test_class_summary_only.html')

self.assertIn(
'<span class="pre">dummy.TestClass.instance_attribute</span>',
html)
if sphinx_version[:2] != [3, 1]:
self.assertIn(
'<span class="pre">dummy.TestClass.instance_attribute</span>',
html)

self.assertIn('<span class="pre">test_method</span>', html)
self.assertIn('<span class="pre">test_attr</span>', html)
Expand Down

0 comments on commit abd03e3

Please sign in to comment.