Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ENH] refactor test scenario creation to be lazy rather than on modul…
…e load (#245) This PR refactors test scenario creation to be lazy rather than on module load. Currently, the data for test scenarios is created on module load and is persisted as module variables, which may increase test collection time and memory usage. The status quo also creates a risk for side effects to which `pandas` objects are prone. This PR migrates the architecture to the same pattern that `pytest` fixtures use, where concrete objects are only created when the scenario is loaded. The change also ensures that a new object is created each time the fixture is requested, avoiding side effects from mutating the single reference. Same as sktime/sktime#6278, for `skpro`.
- Loading branch information
Showing
1 changed file
with
29 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters