()
| 337 | |
| 338 | |
| 339 | def test_remove_prefix_from_path_1(): |
| 340 | activator = PosixActivator() |
| 341 | original_path = tuple(activator._get_starting_path_list()) |
| 342 | keep_path = activator.path_conversion("/keep/this/path") |
| 343 | final_path = (keep_path, *original_path) |
| 344 | final_path = activator.path_conversion(final_path) |
| 345 | |
| 346 | test_prefix = join(os.getcwd(), "mytestpath") |
| 347 | new_paths = tuple(activator._get_path_dirs(test_prefix)) |
| 348 | prefix_added_path = (keep_path, *new_paths, *original_path) |
| 349 | new_path = activator._remove_prefix_from_path(test_prefix, prefix_added_path) |
| 350 | assert final_path == new_path |
| 351 | |
| 352 | |
| 353 | def test_remove_prefix_from_path_2(): |
nothing calls this directly
no test coverage detected
searching dependent graphs…