From 5887a3884d46630def778f6e1fa036b4bcf6271a Mon Sep 17 00:00:00 2001 From: Lech Gudalewicz Date: Sat, 18 Jan 2020 13:44:04 -0800 Subject: [PATCH] 202001.3 --- hush/console.py | 4 ++-- pyproject.toml | 4 ++-- tests/test_cmd.py | 6 ++++-- 3 files changed, 8 insertions(+), 6 deletions(-) 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])