Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do not import setup in the tests module #65

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions humanfriendly/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
deprecation_note_callback,
man_role,
pypi_role,
setup,
setup as sphinx_setup,
special_methods_callback,
usage_message_callback,
)
Expand Down Expand Up @@ -1444,7 +1444,7 @@ def bogus_usage(self):

# Test event callback registration.
fake_app = FakeApp()
setup(fake_app)
sphinx_setup(fake_app)
assert man_role == fake_app.roles['man']
assert pypi_role == fake_app.roles['pypi']
assert deprecation_note_callback in fake_app.callbacks['autodoc-process-docstring']
Expand Down