Exemplo n.º 1
0
def monkey_patch_s3_client(monkeypatch, request):
    # If tmpdir is used in the test, then it is providing the file.  Map to it.
    if "s3_root_dir" in request.fixturenames:
        path = request.getfixturevalue("s3_root_dir")
    else:
        path = None
    monkeypatch.setattr(s3_utils, "_CLIENT", lib_helpers.MockS3Client(path))
Exemplo n.º 2
0
def monkey_patch_s3_client(monkeypatch):
    monkeypatch.setattr(s3_utils, "_CLIENT", lib_helpers.MockS3Client())