Coverage for netrun/rbac/tests/conftest.py: 0%

1"""

2 Pytest configuration for tenant isolation tests.

3

4 Registers custom markers and provides shared fixtures.

5"""

6

7 import pytest

8

9

10 def pytest_configure(config):

11 """Register custom markers for tenant isolation tests."""

12 config.addinivalue_line(

13 "markers",

14 "tenant_isolation: Mark test as a tenant isolation contract test (CRITICAL)",

15 )

16 config.addinivalue_line(

17 "markers",

18 "escape_path: Mark test as testing a specific escape path scenario",

19 )

20 config.addinivalue_line(

21 "markers",

22 "integration: Mark test as requiring PostgreSQL database with RLS",

23 )

24 config.addinivalue_line(

25 "markers",

26 "critical: Mark test as critical security test that must never fail",

27 )

28 config.addinivalue_line(

29 "markers",

30 "security: Mark test as a security-focused test",

31 )