ceph-volume: tests: create capture fixture for tests

Signed-off-by: Alfredo Deza <adeza@redhat.com>
This commit is contained in:
Alfredo Deza 2017-07-17 15:41:07 -04:00
parent 7067303e19
commit c5a3a7b2e1

View File

@ -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()