From 907f80e1889781a69edded00126b3e78ddeb7b8e Mon Sep 17 00:00:00 2001 From: Simeon Simeonov Date: Fri, 4 Mar 2022 20:48:20 +0100 Subject: Add the -P param, bash completion script and improve the README.md --- tests/test_envtoolkit_instance.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'tests/test_envtoolkit_instance.py') diff --git a/tests/test_envtoolkit_instance.py b/tests/test_envtoolkit_instance.py index 2ffacd2..9061dc8 100644 --- a/tests/test_envtoolkit_instance.py +++ b/tests/test_envtoolkit_instance.py @@ -1,5 +1,5 @@ # etoolkit -# Copyright (C) 2021 Simeon Simeonov +# Copyright (C) 2021-22 Simeon Simeonov # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -19,7 +19,7 @@ import pytest import etoolkit -def test_instantiation(config_data, password_hash): +def test_instantiation(config_data): """Tests for object instatiation""" with pytest.raises(etoolkit.EtoolkitInstanceError) as exc_info: instance = etoolkit.EtoolkitInstance('devv', config_data) @@ -32,7 +32,9 @@ def test_instantiation(config_data, password_hash): assert 'DB_CONNECTION' not in instance.sensitive_env_variables assert 'PASSWORD' in instance.sensitive_env_variables assert instance.name == 'secret' - assert instance.master_password_hash == password_hash + assert instance.master_password_hash == ( + config_data['general']['MASTER_PASSWORD_HASH'] + ) assert instance.master_password is None -- cgit v1.3