Test Failed
Branch master (43347c)
by Peter
01:10
created

test_directory   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 10
dl 0
loc 20
rs 10
c 0
b 0
f 0
wmc 2
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