pytest11 entry points to export fixtures

pull/2993/head
Kieran Prasch 2022-10-29 13:23:50 +01:00
parent 88106adf81
commit 42d8e7d5de
3 changed files with 15 additions and 9 deletions

View File

@ -164,15 +164,20 @@ setup(
extras_require=EXTRAS,
# Package Data
packages=find_packages(exclude=["tests", "scripts"]),
packages=find_packages(exclude=["scripts"]),
include_package_data=True,
zip_safe=False,
# Entry Points
entry_points={'console_scripts': [
'nucypher = nucypher.cli.main:nucypher_cli',
'nucypher-deploy = nucypher.cli.commands.deploy:deploy',
]},
entry_points={
'console_scripts': [
'nucypher = nucypher.cli.main:nucypher_cli',
'nucypher-deploy = nucypher.cli.commands.deploy:deploy'
],
'pytest11': [
"pytest-nucypher = tests.fixtures"
]
},
# setup.py commands
cmdclass={

View File

@ -76,10 +76,6 @@ def monkeysession():
# Pytest configuration
#
pytest_plugins = [
'tests.fixtures', # Includes external fixtures module
]
def pytest_addoption(parser):
parser.addoption("--run-nightly",

View File

@ -1036,3 +1036,8 @@ def random_context():
}
return context
@pytest.fixture(scope='module')
def mock_rest_middleware():
return MockRestMiddleware()