charmed-kubernetes / pytest-operator

Apache License 2.0
7 stars 13 forks source link

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

Closed sed-i closed 1 year ago

sed-i 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 :)

sed-i commented 1 year ago

Could you please take a look @addyess?