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

Tests: Remove deprecated aiida/manage/tests/main module and move system tests #6163

Merged
merged 4 commits into from
Nov 16, 2023

Conversation

sphuber
Copy link
Contributor

@sphuber sphuber commented Oct 26, 2023

No description provided.

@sphuber
Copy link
Contributor Author

sphuber commented Oct 30, 2023

@aiidateam/plugin-developers is anyone still relying on the old unittest based test manager? Or is everyone now working with pytest?

@yakutovicha
Copy link
Contributor

in all plugins I maintain we use pytest only.

@sphuber sphuber force-pushed the fix/move-system-tests branch 2 times, most recently from c576396 to ac983f2 Compare November 16, 2023 14:31
This module had been deprecated and replaced a long time ago in favor of
`pytest` based fixtures that provide a complete testing environment with
test profiles being created on-the-fly.
The `.github/system_tests/test_ipython_magics.py` file provided tests
for the ipython magics, however, these can simply be run in the main
test suite invoked directly through `pytest`.
The `.github/system_tests/pytest/test_memory_leaks.py` file provided
tests to ensure memory is not being leaked when running processes. These
tests do not require being executed in standalone `pytest` invocation
but can be included in the main unit test suite. Historically, the
separation was required when the main unit test suite was not fully
using `pytest` yet but used a framework based on `unittest`.

With this migration, the last test in the `.github/workflows/tests.sh`
script has been moved and now it merely calls the main test suite. The
CI workflows that called it, now simply directly invoke the command to
run the main test suite and the `tests.sh` script is deleted.
@sphuber sphuber force-pushed the fix/move-system-tests branch from ef510ef to 786d610 Compare November 16, 2023 17:39
After the previous commit, for some unknown reason, `pylint` started
throwing `no-member` and `no-name-in-module` warnings for import lines
that import a class directly from `aiida.orm`. The imports actually work
just fine and `pylint` didn't use to complain. The changes of the
previous commit seem completely unrelated, so for now the warnings are
ignored. Soon `pylint` will anyway be replaced by `ruff`.
@sphuber sphuber force-pushed the fix/move-system-tests branch from 786d610 to d08aed2 Compare November 16, 2023 17:59
@sphuber sphuber merged commit 15379bb into aiidateam:main Nov 16, 2023
35 checks passed
@sphuber sphuber deleted the fix/move-system-tests branch November 16, 2023 20:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants