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

7 statements  

« prev     ^ index     » next       coverage.py v7.12.0, created at 2025-12-18 22:07 +0000

1""" 

2Pytest configuration for tenant isolation tests. 

3 

4Registers custom markers and provides shared fixtures. 

5""" 

6 

7import pytest 

8 

9 

10def 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 )