diff options
| author | Eric N. Vander Weele <ericvw@gmail.com> | 2020-01-12 15:13:41 -0800 |
|---|---|---|
| committer | Eric N. Vander Weele <ericvw@gmail.com> | 2020-01-12 23:19:26 -0500 |
| commit | 77b2506071bec65d75e5259e00ceefb91ae50cf1 (patch) | |
| tree | ba1ab41f0d9e4f422a00649b98c98c120ed7771c /tests/integration | |
| parent | 153032f778d609b206cbfdb56ddf27e6f46925c4 (diff) | |
| download | flake8-77b2506071bec65d75e5259e00ceefb91ae50cf1.tar.gz | |
config: Switch code paths to use 'ConfigFileFinder.config_file'
Now that the `ConfigFileFinder` has the `.config_file` attribute, switch
the relevant code paths to utilize this public attribute.
Tests have been updated to either construct `ConfigFileFinder` or mock
the object appropriately.
Diffstat (limited to 'tests/integration')
| -rw-r--r-- | tests/integration/test_aggregator.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/integration/test_aggregator.py b/tests/integration/test_aggregator.py index 672c865..e365dfc 100644 --- a/tests/integration/test_aggregator.py +++ b/tests/integration/test_aggregator.py @@ -30,7 +30,10 @@ def test_aggregate_options_with_config(optmanager): """Verify we aggregate options and config values appropriately.""" arguments = ['flake8', '--select', 'E11,E34,E402,W,F', '--exclude', 'tests/*'] - config_finder = config.ConfigFileFinder('flake8', []) + config_finder = config.ConfigFileFinder( + 'flake8', + [], + config_file=CLI_SPECIFIED_CONFIG) options, args = aggregator.aggregate_options( optmanager, config_finder, CLI_SPECIFIED_CONFIG, arguments) |
