Teardown testenvironment for the module: - Remove dummy home dir tree
()
| 32 | |
| 33 | |
| 34 | def teardown_module(): |
| 35 | """Teardown testenvironment for the module: |
| 36 | |
| 37 | - Remove dummy home dir tree |
| 38 | """ |
| 39 | # Note: we remove the parent test dir, which is the root of all test |
| 40 | # subdirs we may have created. Use shutil instead of os.removedirs, so |
| 41 | # that non-empty directories are all recursively removed. |
| 42 | shutil.rmtree(TMP_TEST_DIR) |
| 43 | |
| 44 | def patch_get_home_dir(dirpath): |
| 45 | return patch.object(paths, 'get_home_dir', return_value=dirpath) |
nothing calls this directly
no outgoing calls
no test coverage detected