Skip to content

Commit 79c53a9

Browse files
Add architecture marker registration guard test
Co-authored-by: Shri Sukhani <shrisukhani@users.noreply.github.com>
1 parent c8448aa commit 79c53a9

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
from pathlib import Path
2+
3+
import pytest
4+
5+
pytestmark = pytest.mark.architecture
6+
7+
8+
def test_pyproject_registers_architecture_pytest_marker():
9+
pyproject_text = Path("pyproject.toml").read_text(encoding="utf-8")
10+
11+
assert 'markers = [' in pyproject_text
12+
assert "architecture: architecture/guardrail quality gate tests" in pyproject_text

0 commit comments

Comments
 (0)