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

Fixing the tests #517

Closed
Closed
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
3 changes: 1 addition & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,7 @@ jobs:
- name: Run tests
run: |
source $VENV
poetry run coverage run -m unittest moabb.tests
poetry run coverage xml
pytest --cov=moabb tests/ --cov-report term --cov-report xml:coverage.xml

- name: Run pipelines
run: |
Expand Down
6 changes: 3 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -108,9 +108,9 @@ ENV/
*.hd5
*.hdf5
analysis/*
/moabb/tests/barplot.pdf
/moabb/tests/orderplot.pdf
/moabb/tests/orderplot_full.pdf
/tests/barplot.pdf
/tests/orderplot.pdf
/tests/orderplot_full.pdf
/test_context.yml

# mac os x stuff
Expand Down
16 changes: 0 additions & 16 deletions moabb/tests/__init__.py

This file was deleted.

14 changes: 14 additions & 0 deletions tests/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# flake8: noqa
# from moabb.tests.util_tests import *

from tests.analysis import *
from tests.benchmark import *
from tests.classification import *
from tests.datasets import *
from tests.download import *
from tests.evaluations import *
from tests.paradigms import *


if __name__ == "__main__":
unittest.main()
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion moabb/tests/evaluations.py → tests/evaluations.py
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,7 @@ def test_save_model_cv_with_pytorch_model(self):
step = NeuralNetClassifier(module=torch.nn.Linear(10, 2))
step.initialize()
model = Pipeline([("step", step)])
save_path = "."
save_path = ""
cv_index = 0
save_model_cv(model, save_path, cv_index)

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.