mirror of
https://github.com/planetmint/planetmint.git
synced 2025-11-25 06:55:45 +00:00
fixed missing Config().get() migrations
Signed-off-by: Jürgen Eckel <juergen@riddleandcode.com>
This commit is contained in:
parent
52602ef098
commit
01c1f9008f
@ -8,13 +8,12 @@ from argparse import Namespace
|
|||||||
import logging
|
import logging
|
||||||
|
|
||||||
import pytest
|
import pytest
|
||||||
|
from planetmint.config import Config
|
||||||
from unittest.mock import patch
|
from unittest.mock import patch
|
||||||
|
|
||||||
|
|
||||||
@pytest.fixture
|
@pytest.fixture
|
||||||
def reset_planetmint_config(monkeypatch):
|
def reset_planetmint_config(monkeypatch):
|
||||||
from planetmint.config import Config
|
|
||||||
monkeypatch.setattr('planetmint.config', Config().init_config('tarantool_db'))
|
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)
|
args = Namespace(config=None, log_level=log_level)
|
||||||
test_configure_logger(args)
|
test_configure_logger(args)
|
||||||
assert config['log']['level_console'] == log_level
|
assert Config().get()['log']['level_console'] == log_level
|
||||||
assert config['log']['level_logfile'] == log_level
|
assert Config().get()['log']['level_logfile'] == log_level
|
||||||
|
|
||||||
|
|
||||||
def test_start_raises_if_command_not_implemented():
|
def test_start_raises_if_command_not_implemented():
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user