Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update MIBI consumer to inherit from ImageFileConsumer. (#119)
* Improved testing coverage using fakeredis and pytest-mock (#117) * install pytest-mock and replace monkeypatching with `mock` library. * move testing reqs into requirements-test.txt and add 3.8 to test suite. * update RedisClient tests to use fakeredis. * directly patch boto3.client * no need to alias google.cloud.storage in imports. * Fix storage tests to use a Singleton dummy class instead of global variables. * proper string fomatting using {} instead of %s * move DummyStorage and DummyRedis into utils/testing_utils.py to DRY out the tests * Update tests to use fakeredis client and fewer global variables. * use save_output for ImageConsumer and MibiConsumer. pass save_name into the function directly instead of calling HGETALL inside the save_output function. * inherit from ImageFileConsumer to make better use of the pre/post-process functions. * add keys for the mibi pre and postprocessing. * adapt the mibi consumer tests to use the testing_utils.py helpers. * remove unused imports. * Fix a few license URLs. (#118)
- Loading branch information
Showing
19 changed files
with
1,046 additions
and
1,382 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.