File tree Expand file tree Collapse file tree 2 files changed +12
-7
lines changed
Expand file tree Collapse file tree 2 files changed +12
-7
lines changed Original file line number Diff line number Diff line change @@ -52,3 +52,10 @@ def download_to_filename(self, filename):
5252 copyfile (self .name , filename )
5353
5454 return MockStorageBlob (* args , ** kwargs )
55+
56+
57+ def mock_firestore_client ():
58+ """Mocks firestore.Client() by returning nothing upon initializing client
59+ See notes in mock_load_expression_data for context.
60+ """
61+ return
Original file line number Diff line number Diff line change 11"""Integration tests for Ingest Pipeline; isolated tests for observable output
22
33These tests verify that various matrix file types can be extracted and
4- transformed, as loaded into (an official emulator of) Firestore
4+ transformed, as expected by code that loads transformed data into Firestore.
55
66Test doubles are used for test speed and isolation.
77
1515pytest
1616
1717# Run tests with names containing the string 'dense'
18- pytest -k 'dense'
18+ pytest -ks 'dense'
1919
2020# Run all tests in a manner that shows any print() statements
21- python3 test_ingest.py
21+ pytest -s
2222
2323# Run all tests, using multiple CPUs
2424# Details: https://pypi.org/project/pytest-xdist/
25- pytest -n auto
25+ pytest -ns auto
2626
2727# Run all tests, show code coverage metrics
28- # For explanation of coverage report, see:
29- # https://coverage.readthedocs.io/en/v4.5.x/branch.html
30- coverage run --branch test_ingest.py; coverage report -m --include *scp-ingest-pipeline/ingest*
28+ pytest --cov=../ingest/
3129
3230"""
3331import ast
You can’t perform that action at this time.
0 commit comments