Skip to content

Commit 265259a

Browse files
committed
add test for lock file
1 parent bad4eb6 commit 265259a

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

src/tests/cpp_dev/project/test_constants.py

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,12 @@
77

88
import pytest
99

10-
from cpp_dev.project.constants import compose_include_file, compose_project_config_file, compose_source_file
10+
from cpp_dev.project.constants import (
11+
compose_include_file,
12+
compose_project_config_file,
13+
compose_project_lock_file,
14+
compose_source_file,
15+
)
1116

1217

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

2126

27+
def test_compose_project_lock_file(test_project_dir: Path) -> None:
28+
assert compose_project_lock_file(test_project_dir) == Path("project/cpp-dev.lock")
29+
30+
2231
def test_compose_include_file(test_project_dir: Path) -> None:
2332
assert compose_include_file(test_project_dir, "test", "test.hpp") == Path("project/include/test/test.hpp")
2433

2534

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

0 commit comments

Comments
 (0)