Skip to content

Commit

Permalink
add test for lock file
Browse files Browse the repository at this point in the history
  • Loading branch information
amhellmund committed Dec 29, 2024
1 parent bad4eb6 commit 265259a
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion src/tests/cpp_dev/project/test_constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,12 @@

import pytest

from cpp_dev.project.constants import compose_include_file, compose_project_config_file, compose_source_file
from cpp_dev.project.constants import (
compose_include_file,
compose_project_config_file,
compose_project_lock_file,
compose_source_file,
)


@pytest.fixture
Expand All @@ -19,9 +24,14 @@ def test_compose_project_config_file(test_project_dir: Path) -> None:
assert compose_project_config_file(test_project_dir) == Path("project/cpp-dev.yaml")


def test_compose_project_lock_file(test_project_dir: Path) -> None:
assert compose_project_lock_file(test_project_dir) == Path("project/cpp-dev.lock")


def test_compose_include_file(test_project_dir: Path) -> None:
assert compose_include_file(test_project_dir, "test", "test.hpp") == Path("project/include/test/test.hpp")


def test_compose_source_file(test_project_dir: Path) -> None:
assert compose_source_file(test_project_dir, "test.cpp") == Path("project/src/test.cpp")
assert compose_include_file(test_project_dir, "test", "test.hpp") == Path("project/include/test/test.hpp")

0 comments on commit 265259a

Please sign in to comment.