fast-aircraft-design / FAST-OAD

FAST-OAD: An open source framework for rapid Overall Aircraft Design
GNU General Public License v3.0
47 stars 25 forks source link

No reset of active_submodel when pytest are run at the same time #440

Closed florentLutz closed 1 year ago

florentLutz commented 2 years ago

Describe the bug Running two OAD processes in two pytests in the same pytest file will not reset to the default submodels from one process to another. In the small code provided in next step, running both pytests at the same time (e.g. running pytest submodel_bug/test_submodel.py ) will provide an error because in the second pytest the default submodel is not used, it is put to null as is the case in the first test. When running both tests separetely however, there is non error

To Reproduce See little code attached : submodel_bug.zip

Expected behavior Expected behaviour of when tests are run one right after the other is the behaviour when both tests are run separately

Environment

christophe-david commented 1 year ago

Closed by #444