mirror of
https://github.com/PyCQA/flake8.git
synced 2026-03-30 10:46:54 +00:00
Start writing tests for the config finder
This commit is contained in:
parent
30f4ccda0e
commit
8dd160c98e
1 changed files with 11 additions and 0 deletions
11
tests/unit/test_config_file_finder.py
Normal file
11
tests/unit/test_config_file_finder.py
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
"""Tests for the ConfigFileFinder."""
|
||||
import os
|
||||
|
||||
from flake8.options import config
|
||||
|
||||
|
||||
def test_uses_default_args():
|
||||
"""Show that we default the args value."""
|
||||
finder = config.ConfigFileFinder('flake8', None, [])
|
||||
assert finder.args == ['.']
|
||||
assert finder.parent == os.path.abspath('.')
|
||||
Loading…
Add table
Add a link
Reference in a new issue