Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F7437565
D7189.id26056.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
680 B
Subscribers
None
D7189.id26056.diff
View Options
diff --git a/conftest.py b/conftest.py
--- a/conftest.py
+++ b/conftest.py
@@ -1,8 +1,6 @@
from hypothesis import settings
import pytest
-from swh.core.cli import swh as _swhmain
-
# define tests profile. Full documentation is at:
# https://hypothesis.readthedocs.io/en/latest/settings.html#settings-profiles
settings.register_profile("fast", max_examples=5, deadline=5000)
@@ -13,6 +11,8 @@
def swhmain():
"""Yield an instance of the main `swh` click command that cleans the added
subcommands up on teardown."""
+ from swh.core.cli import swh as _swhmain
+
commands = _swhmain.commands.copy()
aliases = _swhmain.aliases.copy()
yield _swhmain
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Apr 14, 12:28 AM (1 w, 1 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3218731
Attached To
D7189: Prevent root conftest.py from loading swh.core at module loading time
Event Timeline
Log In to Comment