diff --git a/hush/console.py b/hush/console.py index 08b1c6a..fa9d6f2 100644 --- a/hush/console.py +++ b/hush/console.py @@ -9,7 +9,7 @@ from . import keypairs, passwords, secrets DEFAULT_CONFIG_FILE = "~/.hush" -DEFAULT_PASSWORD_LENGTH = 8 +DEFAULT_PASSWORD_LENGTH = 16 DEFAULT_CHARACTER_CLASSES = "aA8#" @@ -64,7 +64,7 @@ def config_callback(ctx, param, value): @click.group() -@click.version_option("202001.2") +@click.version_option("202001.3") @click.option( "-c", "--config-file", diff --git a/pyproject.toml b/pyproject.toml index 2bd5fbe..b87e0e0 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -11,7 +11,7 @@ multi_line_output=3 include_trailing_comma = true [pycalver] -current_version = "v202001.0001" +current_version = "v202001.0003" version_pattern = "{pycalver}" commit = false tag = false @@ -30,7 +30,7 @@ push = false [tool.poetry] name = "hush" -version = "202001.2" +version = "202001.3" description = "Minimalistic command line secret management" license = "BSD-3-Clause" authors = ["Lech Gudalewicz "] diff --git a/tests/test_cmd.py b/tests/test_cmd.py index 12e3198..d8a559b 100644 --- a/tests/test_cmd.py +++ b/tests/test_cmd.py @@ -36,7 +36,7 @@ def test_version(): runner = CliRunner() output = runner.invoke(cli, "--version").output.strip() - assert "202001.2" in output + assert "202001.3" in output def test_generate_default(): @@ -78,7 +78,9 @@ def test_generate_nonalphanumeric(): assert result.exit_code == 0 output = result.output.strip() nonalphanumeric = r"~!@#$%^&*_-+=|\(){}[]:;<>,.?/" - assert len(output) == 8 + + assert len(output) == DEFAULT_PASSWORD_LENGTH + assert all([x in nonalphanumeric for x in output])