Commit Graph

4 Commits

Author SHA1 Message Date
Hervé Beraud 33bcde1011 Use unittest.mock instead of mock
The mock third party library was needed for mock support in py2
runtimes. Since we now only support py36 and later, we can use the
standard lib unittest.mock module instead.

Note that https://github.com/openstack/charms.openstack is used during tests
and he need `mock`, unfortunatelly it doesn't declare `mock` in its
requirements so it retrieve mock from other charm project (cross dependency).
So we depend on charms.openstack first and when
Ib1ed5b598a52375e29e247db9ab4786df5b6d142 will be merged then CI
will pass without errors.

Depends-On: Ib1ed5b598a52375e29e247db9ab4786df5b6d142
Change-Id: I0550ad77a072d7edb083f24b260cbe034c8b9c75
2021-12-15 09:52:37 +00:00
Alex Kavanagh da16f31731 Migrate unit tests from testr to stestr
Change-Id: Icc61c198a2df0879bdf3cd2458ec827e2ed04d7c
2021-02-10 11:12:34 +00:00
Frode Nordahl 1ab760f201
Add unit tests
Change-Id: I3e00a814f6228c9ad4a5833b147ab170c8e3d187
2019-09-24 16:21:54 +02:00
Liam Young 2b795745e1 Generl tidy, docstrings, copyright, tox.ini etc 2016-09-12 15:02:22 +00:00