I'm having an issue with unit tests for variables defined on orca datasets and was wondering if anybody came across the same issue. I have several files with unit tests in
Each of them passes when ran individually, but the test fails if run all at once, throwing a KeyError for the tested variable.
I suspect it has to do something with the setup/teardown function orca.clear_all(). For example, the following file is the only one that contains more than one test and it would not work with the orca.clear_all() calls but it does without, again only when called individually:
However, removing those calls also from the other files causes other table columns not being found.
I was also experimenting with setting a different scope for the pytest fixtures, but it did not work. Did anyone write successful unit tests for orca variables? Thanks!