From 01c1f9008f0291902f6cce44efcc0912c6a89b9f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrgen=20Eckel?= Date: Wed, 13 Apr 2022 00:17:06 +0200 Subject: [PATCH] fixed missing Config().get() migrations MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Jürgen Eckel --- tests/commands/test_utils.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/tests/commands/test_utils.py b/tests/commands/test_utils.py index 67c3cee..0018568 100644 --- a/tests/commands/test_utils.py +++ b/tests/commands/test_utils.py @@ -8,13 +8,12 @@ from argparse import Namespace import logging import pytest - +from planetmint.config import Config from unittest.mock import patch @pytest.fixture def reset_planetmint_config(monkeypatch): - from planetmint.config import Config monkeypatch.setattr('planetmint.config', Config().init_config('tarantool_db')) @@ -85,8 +84,8 @@ def test_configure_planetmint_logging(log_level): args = Namespace(config=None, log_level=log_level) test_configure_logger(args) - assert config['log']['level_console'] == log_level - assert config['log']['level_logfile'] == log_level + assert Config().get()['log']['level_console'] == log_level + assert Config().get()['log']['level_logfile'] == log_level def test_start_raises_if_command_not_implemented():