Skip to content

Commit

Permalink
Refactor/unittests (#1950)
Browse files Browse the repository at this point in the history
* replace unittest base class with pytest

* add pytest conftest for migrating from unittest to pytest

* update test_logging.py

* update test_timeseries.py

* update test_timeseries_multivariate.py

* update test_timeseries.py

* refactored tests from unittest to pytest

* fix failing unittests

* parametrize slow tests

* remove some unittest decorators

* fix failing unit tests

* Update CHANGELOG.md

* apply suggestions from code review

* remove checkpoints from git history

* fix unit test
  • Loading branch information
dennisbader committed Aug 17, 2023
1 parent b1290cb commit 7c6e04a
Show file tree
Hide file tree
Showing 73 changed files with 7,205 additions and 7,902 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ but cannot always guarantee backwards compatibility. Changes that may **break co
- Fixed a bug when using `TFTExplainer` with a `TFTModel` running on GPU. [#1949](https://github.com/unit8co/darts/pull/1949) by [Dennis Bader](https://github.com/dennisbader).
- Fixed a bug in `TorchForecastingModel.load_weights()` that raised an error when loading the weights from a valid architecture. [#1952](https://github.com/unit8co/darts/pull/1952) by [Antoine Madrona](https://github.com/madtoinou).

### For developers of the library:

**Improved**
- Refactored all tests to use pytest instead of unittest. [#1950](https://github.com/unit8co/darts/pull/1950) by [Dennis Bader](https://github.com/dennisbader).

## [0.25.0](https://github.com/unit8co/darts/tree/0.25.0) (2023-08-04)
### For users of the library:
Expand Down
642 changes: 330 additions & 312 deletions darts/tests/ad/test_aggregators.py

Large diffs are not rendered by default.

358 changes: 180 additions & 178 deletions darts/tests/ad/test_anomaly_model.py

Large diffs are not rendered by default.

512 changes: 247 additions & 265 deletions darts/tests/ad/test_detectors.py

Large diffs are not rendered by default.

0 comments on commit 7c6e04a

Please sign in to comment.