From: Alfredo Deza Date: Mon, 17 Jul 2017 19:41:07 +0000 (-0400) Subject: ceph-volume: tests: create capture fixture for tests X-Git-Tag: ses5-milestone10~3^2~5^2~32 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=c5a3a7b2e1d415c5c21e2280f8323dd114f9e251;p=ceph.git ceph-volume: tests: create capture fixture for tests Signed-off-by: Alfredo Deza --- diff --git a/src/ceph-volume/ceph_volume/tests/conftest.py b/src/ceph-volume/ceph_volume/tests/conftest.py new file mode 100644 index 000000000000..869979ebf2db --- /dev/null +++ b/src/ceph-volume/ceph_volume/tests/conftest.py @@ -0,0 +1,16 @@ +import pytest + +class Capture(object): + + def __init__(self, *a, **kw): + self.a = a + self.kw = kw + self.calls = [] + + def __call__(self, *a, **kw): + self.calls.append({'args': a, 'kwargs': kw}) + + +@pytest.fixture +def capture(): + return Capture()