mirror of https://github.com/nucypher/nucypher.git
pytest11 entry points to export fixtures
parent
88106adf81
commit
42d8e7d5de
15
setup.py
15
setup.py
|
@ -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={
|
||||
|
|
|
@ -76,10 +76,6 @@ def monkeysession():
|
|||
# Pytest configuration
|
||||
#
|
||||
|
||||
pytest_plugins = [
|
||||
'tests.fixtures', # Includes external fixtures module
|
||||
]
|
||||
|
||||
|
||||
def pytest_addoption(parser):
|
||||
parser.addoption("--run-nightly",
|
||||
|
|
|
@ -1036,3 +1036,8 @@ def random_context():
|
|||
}
|
||||
|
||||
return context
|
||||
|
||||
|
||||
@pytest.fixture(scope='module')
|
||||
def mock_rest_middleware():
|
||||
return MockRestMiddleware()
|
||||
|
|
Loading…
Reference in New Issue