mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
fix fc1901d for py3, again. and add 2 assertions
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
from mod1 import func1, Class1
|
||||
from mod2 import (
|
||||
from __future__ import absolute_import
|
||||
|
||||
from .mod1 import func1, Class1
|
||||
from .mod2 import (
|
||||
func2,
|
||||
Class2,
|
||||
)
|
||||
|
||||
@@ -39,3 +39,5 @@ def test_simple(app):
|
||||
result = (app.outdir / 'index.html').text(encoding='utf-8')
|
||||
assert result.count('href="_modules/spam/mod1.html#func1"') == 2
|
||||
assert result.count('href="_modules/spam/mod2.html#func2"') == 2
|
||||
assert result.count('href="_modules/spam/mod1.html#Class1"') == 2
|
||||
assert result.count('href="_modules/spam/mod2.html#Class2"') == 2
|
||||
|
||||
Reference in New Issue
Block a user