mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-05-20 04:58:32 +02:00
consolidate imports
This commit is contained in:
parent
21c244ec1a
commit
1af8c79fcd
1 changed files with 7 additions and 7 deletions
|
@ -1,6 +1,12 @@
|
||||||
import pytest
|
import pytest
|
||||||
|
|
||||||
from jrnl.override import apply_overrides, _recursively_apply, _get_config_node
|
from jrnl.override import (
|
||||||
|
apply_overrides,
|
||||||
|
_recursively_apply,
|
||||||
|
_get_config_node,
|
||||||
|
_get_key_and_value_from_pair,
|
||||||
|
_convert_dots_to_list,
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
@pytest.fixture()
|
@pytest.fixture()
|
||||||
|
@ -53,9 +59,6 @@ def test_get_config_node(minimal_config):
|
||||||
assert _get_config_node(minimal_config, "display_format") == None
|
assert _get_config_node(minimal_config, "display_format") == None
|
||||||
|
|
||||||
|
|
||||||
from jrnl.override import _get_key_and_value_from_pair
|
|
||||||
|
|
||||||
|
|
||||||
def test_get_kv_from_pair():
|
def test_get_kv_from_pair():
|
||||||
pair = {"ab.cde": "fgh"}
|
pair = {"ab.cde": "fgh"}
|
||||||
k, v = _get_key_and_value_from_pair(pair)
|
k, v = _get_key_and_value_from_pair(pair)
|
||||||
|
@ -63,9 +66,6 @@ def test_get_kv_from_pair():
|
||||||
assert v == "fgh"
|
assert v == "fgh"
|
||||||
|
|
||||||
|
|
||||||
from jrnl.override import _convert_dots_to_list
|
|
||||||
|
|
||||||
|
|
||||||
class TestDotNotationToList:
|
class TestDotNotationToList:
|
||||||
def test_unpack_dots_to_list(self):
|
def test_unpack_dots_to_list(self):
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue