This repository has been archived on 2026-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
SpideyDetector/modules/internal_io.py

22 lines
588 B
Python

"""
Internal interfacting objects.
"""
from collections import namedtuple
global_status = namedtuple(
'global_status',
'total_tests, tests_finished, test_success, tests_failed, tests_running, tests_skipped',
defaults=(0, 0, 0, 0, 0, 0)
)
test_status = namedtuple('test_status', 'name, status, message', defaults=(None, None, None))
return_code_dict = {
"skipped": "The test was not run",
"running": "The test is running",
"success": "The test is a success",
"failure": "Test has failed",
"problems": "Test found problems",
"idle": "Test is idle",
}