From 840958f5da8d248f6a8612fa0214aaa053a350eb Mon Sep 17 00:00:00 2001 From: Adib Grouz Date: Wed, 15 Jan 2025 18:59:42 +0000 Subject: [PATCH] update verify hash and update tests --- nox/commands/hash_commands.py | 5 +++-- requirements.txt | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/nox/commands/hash_commands.py b/nox/commands/hash_commands.py index c53e353..362a744 100644 --- a/nox/commands/hash_commands.py +++ b/nox/commands/hash_commands.py @@ -30,7 +30,7 @@ def generate(file_path, text_to_hash, algorithm): manager = HashManager() if file_path and text_to_hash: - click.echo("Error: Please provide either --file or --text, not both.") + click.echo('Error: Please provide either --file or --text, not both.') return if file_path: @@ -42,7 +42,8 @@ def generate(file_path, text_to_hash, algorithm): if text_hash: click.echo(f"{algorithm.upper()} hash for text: {text_hash}") else: - click.echo("Error: Please provide either --file or --text.") + click.echo('Error: Please provide either --file or --text.') + @click.command() @click.option( diff --git a/requirements.txt b/requirements.txt index 98b6bf1..63b13ed 100644 --- a/requirements.txt +++ b/requirements.txt @@ -8,6 +8,7 @@ docker==7.1.0 flake8==7.1.1 flake8-annotations==3.1.1 flake8-mypy==17.8.0 +moto mypy==1.11.1 mypy-extensions==1.0.0 pre-commit==3.8.0 @@ -22,4 +23,3 @@ SQLAlchemy==2.0.32 tqdm==4.66.5 types-requests>=2.28.11 whois==1.20240129.2 -moto \ No newline at end of file