Skip to content

Commit

Permalink
Remove pytest plugin hook
Browse files Browse the repository at this point in the history
This broke all (reasonably recent pytest installations) when snactor was
not installed. From now on, the tests need to load the plugin explicitly
(either in config or in conftest).

Resolves: https://issues.redhat.com/browse/RHEL-74372
  • Loading branch information
pholica authored and pirat89 committed Feb 13, 2025
1 parent 1d01d4c commit bafd8e2
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
3 changes: 0 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,5 @@
[console_scripts]
snactor=leapp.snactor:main
leapp=leapp.cli:main
[pytest11]
snactor_plugin=leapp.snactor.fixture
'''
)
1 change: 1 addition & 0 deletions tests/scripts/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@
# NOTE(ivasilev) Assigning a fixture generated that way to some variable is a necessary prerequisite for it to be
# discovered by pylint
repodir_fixture = make_repository_dir_fixture(name='repository_dir', scope='session')
pytest_plugins = ('leapp.snactor.fixture',)

0 comments on commit bafd8e2

Please sign in to comment.