Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove aiida_tests entry point group and parser_tests #2778

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,6 @@
aiida/backends/tests/test_nodes.py|
aiida/backends/tests/orm/data/test_remote.py|
aiida/backends/tests/orm/utils/test_loaders.py|
aiida/backends/tests/test_parsers.py|
aiida/backends/tests/test_caching_config.py|
aiida/backends/tests/test_plugin_loader.py|
aiida/backends/tests/engine/test_class_loader.py|
Expand Down
11 changes: 0 additions & 11 deletions aiida/backends/tests/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,6 @@
'orm.utils.loaders': ['aiida.backends.tests.orm.utils.test_loaders'],
'orm.utils.repository': ['aiida.backends.tests.orm.utils.test_repository'],
'parsers.parser': ['aiida.backends.tests.parsers.test_parser'],
'parsers': ['aiida.backends.tests.test_parsers'],
'plugin_loader': ['aiida.backends.tests.test_plugin_loader'],
'query': ['aiida.backends.tests.test_query'],
'restapi': ['aiida.backends.tests.test_restapi'],
Expand All @@ -147,11 +146,6 @@ def get_db_test_names():
for name in DB_TEST_LIST[backend]:
retlist.append(name)

# This is a temporary solution to be able to run tests in plugins. Once the plugin fixtures
# have been made working and are released, we can replace this logic with them
for entrypoint in [ep for ep in ENTRYPOINT_MANAGER.iter_entry_points(group='aiida.tests')]:
retlist.append(entrypoint.name)

# Explode the list so that if I have a.b.c,
# I can run it also just with 'a' or with 'a.b'
final_list = [_ for _ in retlist]
Expand Down Expand Up @@ -197,11 +191,6 @@ def get_db_test_list():
for test in tests:
retdict[k].append(test)

# This is a temporary solution to be able to run tests in plugins. Once the plugin fixtures
# have been made working and are released, we can replace this logic with them
for entrypoint in [ep for ep in ENTRYPOINT_MANAGER.iter_entry_points(group='aiida.tests')]:
retdict[entrypoint.name].append(entrypoint.module_name)

# Explode the dictionary so that if I have a.b.c,
# I can run it also just with 'a' or with 'a.b'
final_retdict = defaultdict(list)
Expand Down
284 changes: 0 additions & 284 deletions aiida/backends/tests/test_parsers.py

This file was deleted.

3 changes: 1 addition & 2 deletions aiida/plugins/entry_point.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@
try:
from reentry.default_manager import PluginManager
# I don't use the default manager as it has scan_for_not_found=True
# by default, which re-runs scan if no entrypoints are found (which is
# quite possible if no aiida.tests entrypoints are registered)
# by default, which re-runs scan if no entrypoints are found
ENTRYPOINT_MANAGER = PluginManager(scan_for_not_found=False)
except ImportError:
import pkg_resources as ENTRYPOINT_MANAGER
Expand Down
1 change: 0 additions & 1 deletion setup.json
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,6 @@
"local = aiida.transports.plugins.local:LocalTransport",
"ssh = aiida.transports.plugins.ssh:SshTransport"
],
"aiida.tests": [],
"aiida.tools.calculations": [],
"aiida.tools.dbexporters": [],
"aiida.tools.dbimporters": [
Expand Down