INNER CODE UNIT · Python

indent

usnistgov/OSCAL · src/specifications/profile-resolution/spec-tester.py:359

                driver, scenario, indent=indent + 1)

            if scenario_pass:
                self.logger.info(
                    f"{Colors.BOLD}{Colors.GREEN}{scenario_info}... PASS{Colors.END}")
            else:
                # TODO: param to fail if the level is not "must"
                self.logger.error(
                    f"{Colors.BOLD}{Colors.RED}{scenario_info}... FAIL{Colors.END}")
                test_pass = False

        return test_pass

    def _run_test_scenario(self, driver: Driver, scenario: TestScenario, indent=0) -> bool:
        """
        Runs a given test scenario, returning True if all selection expressions pass
        """

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…