Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions python/tests/analyzer_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,20 @@

import saleae.automation

def test_add_nonexistent_analyzer(manager: saleae.automation.Manager, asset_path: str):
"""
PRO-1182: Test that adding a non-existent analyzer returns InvalidRequestError.
"""
path = os.path.join(asset_path, 'small_spi_capture.sal')

with manager.load_capture(path) as cap:
try:
cap.add_analyzer('NonExistentAnalyzer', label='Test', settings={})
assert False, "Expected InvalidRequestError for non-existent analyzer"
except saleae.automation.InvalidRequestError:
pass


def test_add_analyzer(manager: saleae.automation.Manager, asset_path: str):
path = os.path.join(asset_path, 'small_spi_capture.sal')

Expand Down