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 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
19import etoolkit 19import etoolkit
20 20
21 21
22def test_instantiation(config_data, password_hash): 22def 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