MCPcopy Create free account
hub / github.com/wal-e/wal-e / CheckCatExtract

Class CheckCatExtract

tests/test_tar_hacks.py:133–139  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

131 original_cat_extract = tar_partition.cat_extract
132
133 class CheckCatExtract(object):
134 def __init__(self):
135 self.called = False
136
137 def __call__(self, *args, **kwargs):
138 self.called = True
139 return original_cat_extract(*args, **kwargs)
140
141 check = CheckCatExtract()
142 monkeypatch.setattr(tar_partition, 'cat_extract', check)

Callers 1

test_creation_upper_dirFunction · 0.85

Calls

no outgoing calls

Tested by 1

test_creation_upper_dirFunction · 0.68