summaryrefslogtreecommitdiff
path: root/tests/integration/test_aggregator.py
Commit message (Collapse)AuthorAgeFilesLines
* extend black formatting to tests as wellAnthony Sottile2021-04-181-20/+39
|
* config: Make ConfigFileFinder 'extra_config_files' parameter optionalEric N. Vander Weele2020-01-121-2/+1
| | | | | This simplifies the number of required parameters needed for the `ConfigFileFinder` object throughout the various tests.
* Remove unused 'cli_config' parameterEric N. Vander Weele2020-01-121-2/+2
| | | | | | Now that `ConfigFileFinder.config_file` attribute is used everywhere and is constructed from the `--config` CLI option, the now unused `cli_config` parameters can be safely removed.
* config: Switch code paths to use 'ConfigFileFinder.config_file'Eric N. Vander Weele2020-01-121-1/+4
| | | | | | | | 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.
* Remove unused 'isolated' parameterEric N. Vander Weele2020-01-071-2/+2
| | | | | | Now that `ConfigFileFinder.ignore_config_files` attribute is used everywhere and is constructed from the `--isolated` CLI option, the now unused `isolated` parameters can be safely removed.
* config: Switch code paths to use 'ConfigFileFinder.ignore_config_files'Eric N. Vander Weele2020-01-071-1/+2
| | | | | | | | | Now that the `ConfigFileFinder` has the `.ignore_config_files` attribute, switch the relevant code paths to utilize this public attribute. Tests have been updated to either construct `ConfigFileFinder` or mock the object appropriately.
* aggregator: Forward --config and --isolated options during aggregationEric N. Vander Weele2019-12-291-6/+4
| | | | | | | | | | | | | | This fixes a regression introduced in !346 to ensure that `--config` and `--isolated` are recognized in `aggregate_options()`. The regression manifested because `aggregate_options()` was relying on re-parsing `argv` to obtain the option values. However, !346 changed the preliminary parsing logic to only parse and "eat" what is necessary and forward along the options needed before all the configuration was loaded. This code path was overlooked because the tests in `test_aggregator()` were passing but the call from the `Application` object would never have these options in the remaining `argv` list to be passed long.
* application: Register preliminary options on a separate argument parserEric N. Vander Weele2019-10-251-1/+4
| | | | | | | | | | We introduce a new `ArgumentParser` for registering the preliminary options to be inherited by the `Application.option_manager`. The next step will be to use the `Application.prelim_arg_parser` for parsing and handling preliminary options and arguments. Note that we prevent the preliminary parser from handling `-h/--help` and defer to that to the primary parser.
* options: Split-out registration of preliminary optionsEric N. Vander Weele2019-10-251-0/+1
| | | | | This is in preparation for having separate `ArgumentParser`s for preliminary and the remaining options.
* config: Remove `args` parameter from `ConfigFileFinder.__init__`Eric N. Vander Weele2019-10-131-2/+2
| | | | | | | | Now that `args` parameters is not being used, it is safe to remove from the constructor signature. Further work is required to evaluate and clean-up tearing out the threading-through of `args` from various callers and tests.
* Add support for local (in-repo, non-setuptools) plugins.Carl Meyer2017-08-031-2/+7
| | | | Closes #357
* Configure flake8-import-order to use Google StyleIan Cordasco2016-06-171-2/+2
| | | | | | | | This relies on two things: 1. Properly configuring flake8-import-order to use that style 2. Properly configuring flake8-import-order to know that flake8 is our application name.
* Fix integration testsIan Cordasco2016-06-141-2/+2
|
* Fix tests broken by updating the default ignore listIan Cordasco2016-06-071-1/+1
|
* Fix import ordering in test filesIan Cordasco2016-02-251-2/+2
|
* Add integration tests for aggregate_optionsIan Cordasco2016-01-241-0/+48