charmed-kubernetes / pytest-operator

Apache License 2.0
6 stars 13 forks source link

Use current alias as default alias for `forget_model` #105

Closed addyess closed 1 year ago

addyess commented 1 year ago

It is natural to just await ops_test.forget_model(), but that would error:

TypeError: OpsTest.forget_model() missing 1 required positional argument: ...

Use self.current_alias as default, instead, so passing it wouldn't be necessary.

Note: PyCharm made some whitespace fixes automatically :)

opened to replace https://github.com/charmed-kubernetes/pytest-operator/pull/104

addyess commented 1 year ago

@sed-i i reopened your PR here