- May 12, 2016
-
-
ulif authored
While it is nice to have a working plugin example, it looks also a bit overcomplicated to me. It is better for contributors, if they can find things (like CLI argument parsing) in one (foreseeable) place and do not have for things scattered over the whole project. For plugin documentation we can use the sphinx docs. Or maybe provide a sample plugin in tests.
-
- May 11, 2016
-
-
ulif authored
This argument makes sense together with ``realdice`` randomsource and tells how many sides the dice we use have. Six by default.
-
ulif authored
As we will start to do real things with the options passed in, we need a real (options) dict also in other tests of `RealDiceRandomSource`.
-
ulif authored
The RealDiceRandomSource will support own commandline arguments. This is handled by an own classmethod called `update_argparser` that is called upon initialization of diceware.
-
ulif authored
-
ulif authored
-
ulif authored
-
ulif authored
If plugins want to work with their own commandline args, we allow this by calling their `update_argparser` methods. This has to be a classmethod, if it exists.
-
ulif authored
We got API changes, new options, etc. All this will make the next release a minor one, not a pure bugfix.
-
- May 10, 2016
-
-
ulif authored
Make sure we can use `-v` and `--verbose`.
-
- May 09, 2016
-
-
ulif authored
-
ulif authored
In config files we normally lookup a ``[diceware]`` section. For plugins, however, it might be helpful to be able to parse also other sections. Together with the new `defaults_dict` argument they could implement their own set of options more easily.
-
ulif authored
-
ulif authored
The `diceware.config.get_config_dict()` argument `path_list` was not properly tested yet. Fix that.
-
ulif authored
We will not work on passed-in dicts but on copies thereof.
-
ulif authored
We can now give a custom dict to use for defaults. This is the first step to make `get_config_dict()` usable also for plugins.
-
ulif authored
-
- May 08, 2016
- May 07, 2016
- May 06, 2016
- May 05, 2016
-
-
dwcoder authored
This commit fixes #23 Add the `string.strip()` function to the `get_config_dict()`, to remove inverted commas around string values in the diceware.ini file. The strip removes both `"` and `'`. Add unit test to ensure the line: delimiter=" " in the diceware.ini file is being parsed correctly as a space.
-
- May 03, 2016
-
-
ulif authored
This helps to recognize options as such.
-
- May 01, 2016
- Apr 30, 2016
-
-
ulif authored
-
ulif authored
-
ulif authored
-
ulif authored
The modifications undone here, in `test_handle_options_considers_configfile()` could have gone into an own test. Each single test should only test a clear minimum of things. This specific test checked, whether configiles are considered at all. It was not its purpose to examine correct interpretation of keywords in the .ini-file; only to see whether these keyword values can be changed at all. If we wanted a complete and strict checking also of values, we had at least to check all possible keywords, including 'randomsource' and 'wordlist'. Instead we only check a boolean, int, and string type keyword. Therefore the change to `test_handle_options_considers_configfile()` should have gone to another test. But then, the added testing is not neccessary. We had a test already that should have checked the 'caps' value properly. This test was done wrong before and is now done correctly, thanks to @dwcoder . I therefore removed the added test functionality.
-