Skip to content
17 changes: 17 additions & 0 deletions tests/saitests/mock/it/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
"""
Probe Mock Tests
This directory contains Probe Mock Tests (PMT) for the Mock Testing Framework.
Test Coverage:
- test_pfc_xoff_probing.py: PFC XOFF threshold detection
- test_ingress_drop_probing.py: Ingress drop threshold detection
- test_headroom_pool_probing.py: Headroom calculation (multi-executor)
Running Tests:
cd tests/saitests/mock/it
python3 -m pytest . -v -s
Output:
All tests produce markdown table output identical to physical tests.
"""
23 changes: 23 additions & 0 deletions tests/saitests/mock/it/conftest.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
#!/usr/bin/env python3
# -*- coding: utf-8 -*-

"""
Pytest configuration for Probe Mock Tests
"""

import pytest


@pytest.fixture
def mock_observer():
"""Mock observer for simple tests (deprecated - use ProbingObserver)"""
class MockObserver:
def __init__(self):
pass

def on_iteration_start(self, *args, **kwargs):
pass

def on_iteration_complete(self, *args, **kwargs):
pass
return MockObserver()
Loading
Loading