diff options
| author | Simeon Simeonov | 2022-03-04 20:48:20 +0100 |
|---|---|---|
| committer | Simeon Simeonov | 2022-03-04 20:48:20 +0100 |
| commit | 907f80e1889781a69edded00126b3e78ddeb7b8e (patch) | |
| tree | 20be15e81762d7a72e4caa40bda8b4301339efe4 /tests/test_envtoolkit_instance.py | |
| parent | 4914b0c74ed669d6631897950ff1660ce91ef918 (diff) | |
Add the -P param, bash completion script and improve the README.md
Diffstat (limited to 'tests/test_envtoolkit_instance.py')
| -rw-r--r-- | tests/test_envtoolkit_instance.py | 8 |
1 files changed, 5 insertions, 3 deletions
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 @@ | |||
| 1 | # etoolkit | 1 | # etoolkit |
| 2 | # Copyright (C) 2021 Simeon Simeonov | 2 | # Copyright (C) 2021-22 Simeon Simeonov |
| 3 | 3 | ||
| 4 | # This program is free software: you can redistribute it and/or modify | 4 | # This program is free software: you can redistribute it and/or modify |
| 5 | # it under the terms of the GNU General Public License as published by | 5 | # it under the terms of the GNU General Public License as published by |
| @@ -19,7 +19,7 @@ import pytest | |||
| 19 | import etoolkit | 19 | import etoolkit |
| 20 | 20 | ||
| 21 | 21 | ||
| 22 | def test_instantiation(config_data, password_hash): | 22 | def test_instantiation(config_data): |
| 23 | """Tests for object instatiation""" | 23 | """Tests for object instatiation""" |
| 24 | with pytest.raises(etoolkit.EtoolkitInstanceError) as exc_info: | 24 | with pytest.raises(etoolkit.EtoolkitInstanceError) as exc_info: |
| 25 | instance = etoolkit.EtoolkitInstance('devv', config_data) | 25 | instance = etoolkit.EtoolkitInstance('devv', config_data) |
| @@ -32,7 +32,9 @@ def test_instantiation(config_data, password_hash): | |||
| 32 | assert 'DB_CONNECTION' not in instance.sensitive_env_variables | 32 | assert 'DB_CONNECTION' not in instance.sensitive_env_variables |
| 33 | assert 'PASSWORD' in instance.sensitive_env_variables | 33 | assert 'PASSWORD' in instance.sensitive_env_variables |
| 34 | assert instance.name == 'secret' | 34 | assert instance.name == 'secret' |
| 35 | assert instance.master_password_hash == password_hash | 35 | assert instance.master_password_hash == ( |
| 36 | config_data['general']['MASTER_PASSWORD_HASH'] | ||
| 37 | ) | ||
| 36 | assert instance.master_password is None | 38 | assert instance.master_password is None |
| 37 | 39 | ||
| 38 | 40 | ||
