Skip to content

Commit d7f5acf

Browse files
committed
exclude subprocess mocks from coverage
1 parent 286f38a commit d7f5acf

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

tests/unit/test_transfer_manager.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,10 @@
3535
CHUNK_SIZE = 8
3636

3737

38-
def _validate_blob_token_in_subprocess(
38+
# Used in subprocesses only, so excluded from coverage
39+
def _validate_blob_token_in_subprocess( # pragma: no cover
3940
maybe_pickled_blob, method_name, path_or_file, **kwargs
40-
):
41+
):
4142
assert pickle.loads(maybe_pickled_blob) == BLOB_TOKEN_STRING
4243
assert method_name.endswith("filename")
4344
assert path_or_file.startswith("file")
@@ -619,7 +620,8 @@ def download_to_file(self, *args, **kwargs):
619620
return "SUCCESS"
620621

621622

622-
def _validate_blob_token_in_subprocess_for_chunk(
623+
# Used in subprocesses only, so excluded from coverage
624+
def _validate_blob_token_in_subprocess_for_chunk( # pragma: no cover
623625
maybe_pickled_blob, filename, **kwargs
624626
):
625627
blob = pickle.loads(maybe_pickled_blob)

0 commit comments

Comments
 (0)