Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
New helper context manager
test_resource(...)
.
Should help writing tests where a single configured resource is wanted:: with test_resource(max_cores_per_job=7) as cfg: core = Core(cfg) # ... do something The parameters of the test resource are willingly set to some unlikely value; tests of `Core` and `Engine` need to be updated after these new settings.
- Loading branch information
1 parent
d607bcc
commit 459d3e2
Showing
3 changed files
with
57 additions
and
34 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
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
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