canonical / charm-juju-backup-all

Juju Backup All - a charm to perform Juju and database backups
Apache License 2.0
1 stars 5 forks source link

Fix unit tests #47

Closed samuelallan72 closed 1 month ago

samuelallan72 commented 1 month ago

_TestingModelBackend was moved with the release of 2.17.0.

~NOTE: ideally we shouldn't be referencing private methods in third party libraries, but it looks like it was for working around something not implemented in Harness. Not sure if we can remove it yet.~

Turns out that the tests pass with the mock removed, so the test harness must implement this now. So we can simply remove the entire mocked function. :D