Add tests for console
Todo
Add test for:
-
run -
compile -
params -
pproc -
profile- Too many things to patch, the only reasonable solution would be to actually profile a simulation --> skip
-
units -
format -
lint
More:
-
IMPORTANT: Check that pytest src/struphy/console/tests/test_console.py
doesn't change any files! In particular, the state.yml file, compiled kernels, parameter files in inp. -
https://github.com/zupo/awesome-pytest-speedup#disk-access
Solves the following issue(s):
Addresses similar errors in struphy_run
as was pointed out in #301 (closed) and in !577 (merged) and
Core changes:
- Added pytest for
struphy_run
- Return the command that is called from
struphy_run
so that it can be checked in test
Model-specific changes:
None
Documentation changes:
None
Edited by Max Lindqvist