Commit Graph

4 Commits

Author SHA1 Message Date
Zuul 901c9b9d7d Merge "Use unittest.mock instead of mock" 2021-12-15 09:35:05 +00:00
Alex Kavanagh 2c22d0194d Fully migrate unit tests from testr to stestr
Change-Id: I123134a19b3a6aca7c3574e39b319eeebe163a6a
2021-02-10 11:07:50 +00:00
Hervé Beraud 714ef09e17 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: Ic1a687f95e5fd16ffa7f63102d6f8f2de383780e
2020-06-09 17:47:50 +02:00
Frode Nordahl 323c1c3b14
Fixup repo config
Change-Id: I91d545198a8570d7cacf06576c71f18b06c14df4
2019-01-09 07:53:26 +01:00