Skip to content

Commit

Permalink
Move all tests from aiida.backends.tests to top level module
Browse files Browse the repository at this point in the history
This will prevent them from being included in the distribution that is
uploaded to PyPI making the download a lot quicker.

Note that this commit only moves the files without touching them. This
means that the tests won't actually run since, for example, various
imports are broken. For clarity these changes will be done in a
following commit to not drown out the important changes between files
that were just moved around.

Note that the `django` and `sqlachemy` modules in `tests/backend`, which
contain backend specific tests, are prefixed with `aiida_`, otherwise
imports using either `from django` or `from sqlalchemy` will target
incorrectly those modules, instead of the actual libraries.
  • Loading branch information
sphuber committed Jan 16, 2020
1 parent 40c0cfa commit e4c7fb5
Show file tree
Hide file tree
Showing 251 changed files with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@
args: ["-i"]
exclude: &exclude_files >
(?x)^(
docs/.*|
examples/.*|
.ci/workchains.py|
aiida/backends/djsite/queries.py|
aiida/backends/djsite/db/models.py|
aiida/backends/djsite/db/migrations/0001_initial.py|
Expand Down Expand Up @@ -50,9 +49,6 @@
aiida/backends/sqlalchemy/models/computer.py|
aiida/backends/sqlalchemy/models/settings.py|
aiida/backends/sqlalchemy/models/node.py|
aiida/backends/tests/engine/test_work_chain.py|
aiida/backends/tests/test_dataclasses.py|
aiida/backends/tests/test_nodes.py|
aiida/backends/utils.py|
aiida/common/datastructures.py|
aiida/engine/daemon/execmanager.py|
Expand Down Expand Up @@ -98,7 +94,11 @@
aiida/transports/plugins/test_all_plugins.py|
aiida/transports/plugins/test_local.py|
aiida/transports/plugins/test_ssh.py|
.ci/workchains.py|
docs/.*|
examples/.*|
tests/engine/test_work_chain.py|
tests/test_dataclasses.py|
tests/test_nodes.py|
)$

# prospector: collection of linters
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit e4c7fb5

Please sign in to comment.