()
| 213 | |
| 214 | |
| 215 | def test_recursive_disabled_by_default(): |
| 216 | hasher = PHash() |
| 217 | hashes = hasher.encode_images(PATH_IMAGE_DIR_MIXED_NESTED) |
| 218 | hashes_non_recursive = hasher.encode_images( |
| 219 | PATH_IMAGE_DIR_MIXED_NESTED, recursive=False |
| 220 | ) |
| 221 | assert hashes_non_recursive == hashes |
| 222 | |
| 223 | |
| 224 | def test_encode_images_parallelise_with_num_workers(hasher, mocker): |
nothing calls this directly
no test coverage detected