mirror of
https://github.com/ceph/ceph
synced 2025-02-23 11:07:35 +00:00
ceph-volume: tests: create capture fixture for tests
Signed-off-by: Alfredo Deza <adeza@redhat.com>
This commit is contained in:
parent
7067303e19
commit
c5a3a7b2e1
16
src/ceph-volume/ceph_volume/tests/conftest.py
Normal file
16
src/ceph-volume/ceph_volume/tests/conftest.py
Normal 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()
|
Loading…
Reference in New Issue
Block a user