Page MenuHomeSoftware Heritage

D7189.diff
No OneTemporary

D7189.diff

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

Mime Type
text/plain
Expires
Jul 27 2024, 10:21 AM (11 w, 5 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3218731

Event Timeline