Open phvalguima opened 9 months ago
Choice of unittest/pytest for unit tests, to me, seems independent of data-platform-workflows
For unit tests, data-platform-workflows doesn't care if unittest/pytest is used
(For integration tests, pytest works better with dpw. And, imo, there's value in having the same framework for unit & integration tests)
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
.