Files
photools3/test/test_settings.py
mathias2784 b9632d46b2
Tests / test_and_lint (push) Successful in 27s
Metadata writer (#17)
Reviewed-on: #17
Co-authored-by: Mathias <mathias2784@web.de>
2026-10-10 12:22:15 +00:00

37 lines
763 B
Python

from pathlib import Path
from photools3.settings import (
DNG_EXAMPLES_DIR,
EXAMPLES_DIR,
PHOTOOLS3_DIR,
ROOT_DIR,
SRC_DIR,
settings,
)
def test_photools3_dir():
assert PHOTOOLS3_DIR == Path(__file__).parent.parent.resolve() / "src" / "photools3"
def test_src_dir():
assert SRC_DIR == Path(__file__).parent.parent.resolve() / "src"
def test_root_dir():
assert ROOT_DIR == Path(__file__).parent.parent.resolve()
def test_examples_dir():
assert EXAMPLES_DIR == Path(__file__).parent.parent.resolve() / "examples"
def test_dng_examples_dir():
assert (
DNG_EXAMPLES_DIR == Path(__file__).parent.parent.resolve() / "examples" / "dng"
)
def test_settings_base():
assert settings.llm_api_base_url