def _internal_entrypoint(args): config = _parse_args(args) _init_logging(config) output.init_output(config.output_type) tests = maniac_file.parse(config) result = _run_tests(config, tests) if not result: sys.exit(255)
def testGlobalReplacement(self, m_open, m_isfile, *_): m_open.return_value.__enter__.return_value.read.return_value = \ v3_config_rep_str m_isfile.return_value = 21 maniac_file.parse(self.config_env)
def testFailureOnMissingReplacement(self, m_open, m_isfile, *_): m_open.return_value.__enter__.return_value.read.return_value = \ v3_config_rep_str m_isfile.return_value = 21 with self.assertRaises(SystemExit): maniac_file.parse(self.config_empty)
def testIntmaniacReading(self, m_open, m_isfile, *_): m_open.return_value.__enter__.return_value.read.return_value = \ v3_config_minimal_str m_isfile.return_value = 21 maniac_file.parse(self.config_empty)