Пример #1
0
def test_is_excluded_empty_exclude():
    assert files._is_excluded("test.py", []) is False
Пример #2
0
def test_is_excluded_empty_filename():
    assert files._is_excluded("", EXCLUDE_PATTERN_LIST) is False
Пример #3
0
def test_is_excluded():
    assert files._is_excluded("test.feature", EXCLUDE_PATTERN_LIST) is True
Пример #4
0
def test_is_excluded_not():
    assert files._is_excluded("test.py", EXCLUDE_PATTERN_LIST) is False
Пример #5
0
def test_is_excluded_folder():
    assert files._is_excluded("subdir/test.py", ["*subdir*"]) is True