[unit test] Move to a single framework: pytest
and update secret mocking
#188
Labels
enhancement
New feature or request
pytest
and update secret mocking
#188
We are using unittest as our main framework currently. However, as we move to data platform workflows, we can get a lot of advantages moving it to pytest instead.
One important point raised by @carlcsaposs-canonical is how can we parametrize juju versions for secret management:
https://github.com/canonical/mysql-router-k8s-operator/blob/f2cbb11ba9c333563acbb9f9b1e159adbded15b6/tests/unit/conftest.py#L60-L63
When testing it with OpenSearch, I've got the following errors:
Also, we must remove dependency:
parameterized
and unify it underpytest.mark.parametrize
.The text was updated successfully, but these errors were encountered: