def status()

in run_tests/scoring.py [0:0]


    def status(self):
        """
        Determines the overall status of the subtask based on the worst status among test results.
        Status priorities are ordered from worst to best.
        
        Returns:
            str: The status with the highest priority (lowest value)
        """
        status_prios = {'CE': -1, 'RE': 0, 'WA': 1, 'MLE': 2, 'TLE': 3, 'PA': 4, 'AC': 5, 'SKIPPED': 999}
        return min([x.status for x in self.test_results], key=lambda x: status_prios[x])