summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorAnthony Sottile <asottile@umich.edu>2021-01-07 08:53:11 -0800
committerAnthony Sottile <asottile@umich.edu>2021-01-07 08:57:13 -0800
commit14857c98e09c67d5db3ca557a60c9f6db7f148cc (patch)
treee94c8cf46d96fd9e564cbc155e42e9cfae9b5e2d /tests
parent39ceae7491f4121902a5dccc22657a0675c95539 (diff)
downloadflake8-14857c98e09c67d5db3ca557a60c9f6db7f148cc.tar.gz
fix test which was not testing anything
Diffstat (limited to 'tests')
-rw-r--r--tests/unit/test_legacy_api.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/tests/unit/test_legacy_api.py b/tests/unit/test_legacy_api.py
index 20d5293..0ec839f 100644
--- a/tests/unit/test_legacy_api.py
+++ b/tests/unit/test_legacy_api.py
@@ -1,5 +1,6 @@
"""Tests for Flake8's legacy API."""
import argparse
+import os.path
import mock
import pytest
@@ -91,12 +92,13 @@ def test_styleguide_excluded_with_parent():
"""
app = mock.Mock()
file_checker_manager = app.file_checker_manager = mock.Mock()
+ file_checker_manager.is_path_excluded.return_value = False
style_guide = api.StyleGuide(app)
style_guide.excluded('file.py', 'parent')
- file_checker_manager.is_path_excluded.call_args == [
- ('file.py',),
- ('parent/file.py',),
+ assert file_checker_manager.is_path_excluded.call_args_list == [
+ mock.call('file.py'),
+ mock.call(os.path.join('parent', 'file.py')),
]