| Total Complexity | 2 |
| Total Lines | 20 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | """ |
||
| 2 | Tests for the cleaning logic on folders |
||
| 3 | """ |
||
| 4 | import platform |
||
| 5 | import pytest |
||
| 6 | |||
| 7 | from cli_test_helpers import ArgvContext |
||
| 8 | |||
| 9 | import pyclean.cli |
||
| 10 | |||
| 11 | |||
| 12 | @pytest.mark.skipif(platform.system() != 'Linux', |
||
| 13 | reason="requires Debian Linux") |
||
| 14 | def test_clean_directory(): |
||
| 15 | """ |
||
| 16 | Does traversing directories for cleaning work on Debian Linux? |
||
| 17 | """ |
||
| 18 | with ArgvContext('pyclean', '--legacy', 'foo'): |
||
| 19 | pyclean.cli.main() |
||
| 20 |