From c31fa58c85e866b3a5ab04882c7aff655f0b5477 Mon Sep 17 00:00:00 2001 From: Simeon Simeonov Date: Tue, 30 Apr 2024 11:39:20 +0200 Subject: Implement etoolkit encryption protocol v2 --- 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 09baa31..73faed6 100644 --- a/tests/test_envtoolkit_instance.py +++ b/tests/test_envtoolkit_instance.py @@ -1,5 +1,5 @@ # etoolkit -# Copyright (C) 2021-2022 Simeon Simeonov +# Copyright (C) 2021-2024 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 @@ -14,6 +14,7 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see . """Tests for etoolkit.EtoolkitInstance""" + import pytest import etoolkit @@ -32,8 +33,9 @@ def test_instantiation(config_data): 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 == ( - config_data['general']['MASTER_PASSWORD_HASH'] + assert ( + instance.master_password_hash + == (config_data['general']['MASTER_PASSWORD_HASH']) ) assert instance.master_password is None -- cgit v1.3