Skip to content

Commit

Permalink
test: restructure ml tests (#81)
Browse files Browse the repository at this point in the history
### Summary of Changes

* Reduce code duplication by using fixtures
* Group tests of a method into a class, so we can have one test file per
source file

---------

Co-authored-by: lars-reimann <[email protected]>
  • Loading branch information
lars-reimann and lars-reimann authored Mar 26, 2023
1 parent 64aa429 commit 123ff9e
Show file tree
Hide file tree
Showing 71 changed files with 1,003 additions and 987 deletions.
1 change: 1 addition & 0 deletions .github/linters/.pylintrc
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ disable=
wrong-import-order,
# False positives
import-error,
redefined-outer-name,
# Unwanted
design,
duplicate-code,
Expand Down
Empty file.
21 changes: 0 additions & 21 deletions tests/safeds/ml/classification/_ada_boost/test_fit.py

This file was deleted.

33 changes: 0 additions & 33 deletions tests/safeds/ml/classification/_ada_boost/test_predict.py

This file was deleted.

Empty file.
20 changes: 0 additions & 20 deletions tests/safeds/ml/classification/_classifier/test_accuracy.py

This file was deleted.

Empty file.
21 changes: 0 additions & 21 deletions tests/safeds/ml/classification/_decision_tree/test_fit.py

This file was deleted.

35 changes: 0 additions & 35 deletions tests/safeds/ml/classification/_decision_tree/test_predict.py

This file was deleted.

Empty file.
25 changes: 0 additions & 25 deletions tests/safeds/ml/classification/_gradient_boosting/test_fit.py

This file was deleted.

41 changes: 0 additions & 41 deletions tests/safeds/ml/classification/_gradient_boosting/test_predict.py

This file was deleted.

Empty file.
23 changes: 0 additions & 23 deletions tests/safeds/ml/classification/_k_nearest_neighbors/test_fit.py

This file was deleted.

This file was deleted.

Empty file.
23 changes: 0 additions & 23 deletions tests/safeds/ml/classification/_logistic_regression/test_fit.py

This file was deleted.

This file was deleted.

Empty file.
21 changes: 0 additions & 21 deletions tests/safeds/ml/classification/_random_forest/test_fit.py

This file was deleted.

35 changes: 0 additions & 35 deletions tests/safeds/ml/classification/_random_forest/test_predict.py

This file was deleted.

Loading

0 comments on commit 123ff9e

Please sign in to comment.