mirror of
https://github.com/dw-0/kiauh.git
synced 2025-12-26 09:13:35 +05:00
git-subtree-dir: kiauh/core/submodules/simple_config_parser git-subtree-split: 90081a6539ec38adf6a1a5bb707a0e9934567c7f
23 lines
936 B
Python
23 lines
936 B
Python
# ======================================================================= #
|
|
# Copyright (C) 2024 Dominik Willner <th33xitus@gmail.com> #
|
|
# #
|
|
# https://github.com/dw-0/simple-config-parser #
|
|
# #
|
|
# This file may be distributed under the terms of the GNU GPLv3 license #
|
|
# ======================================================================= #
|
|
from pathlib import Path
|
|
|
|
from src.simple_config_parser.simple_config_parser import (
|
|
SimpleConfigParser,
|
|
)
|
|
|
|
BASE_DIR = Path(__file__).parent.parent.joinpath("assets")
|
|
TEST_DATA_PATH = BASE_DIR.joinpath("test_config_1.cfg")
|
|
|
|
|
|
def test_read_file():
|
|
parser = SimpleConfigParser()
|
|
parser.read_file(TEST_DATA_PATH)
|
|
assert parser.config is not None
|
|
assert parser.config.keys() is not None
|