Module assertions

Module assertions 

Source
Expand description

Custom assertions for agtrace-specific validation.

Provides high-level assertions that make tests more readable:

  • Session count validation
  • Project hash verification
  • JSON structure checks

Functionsยง

assert_all_sessions_from_provider
Assert that all sessions in the list come from the expected provider.
assert_project_count
Assert that JSON output contains expected number of projects.
assert_projects_contain
Assert that project list contains specific project hashes.
assert_session_count
Assert that JSON output contains expected number of sessions.
assert_session_provider
Assert that a specific session comes from the expected provider.
assert_sessions_belong_to_project
Assert that all sessions belong to the specified project hash.