summaryrefslogtreecommitdiff
path: root/tests/test_envtoolkit_instance.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_envtoolkit_instance.py')
-rw-r--r--tests/test_envtoolkit_instance.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/tests/test_envtoolkit_instance.py b/tests/test_envtoolkit_instance.py
index 09baa31..73faed6 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-2022 Simeon Simeonov 2# Copyright (C) 2021-2024 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
@@ -14,6 +14,7 @@
14# You should have received a copy of the GNU General Public License 14# You should have received a copy of the GNU General Public License
15# along with this program. If not, see <http://www.gnu.org/licenses/>. 15# along with this program. If not, see <http://www.gnu.org/licenses/>.
16"""Tests for etoolkit.EtoolkitInstance""" 16"""Tests for etoolkit.EtoolkitInstance"""
17
17import pytest 18import pytest
18 19
19import etoolkit 20import etoolkit
@@ -32,8 +33,9 @@ def test_instantiation(config_data):
32 assert 'DB_CONNECTION' not in instance.sensitive_env_variables 33 assert 'DB_CONNECTION' not in instance.sensitive_env_variables
33 assert 'PASSWORD' in instance.sensitive_env_variables 34 assert 'PASSWORD' in instance.sensitive_env_variables
34 assert instance.name == 'secret' 35 assert instance.name == 'secret'
35 assert instance.master_password_hash == ( 36 assert (
36 config_data['general']['MASTER_PASSWORD_HASH'] 37 instance.master_password_hash
38 == (config_data['general']['MASTER_PASSWORD_HASH'])
37 ) 39 )
38 assert instance.master_password is None 40 assert instance.master_password is None
39 41