Exemple #1
0
	def _check_common_setup(self, parser, Remote):
		parser.parse_args.assert_called_once_with([])
		args = parser.parse_args.return_value
		args.quiet = False
		main.setup_logging(args)

		Remote.assert_called_once_with(tests.dummy_config())
Exemple #2
0
def _logging_test(settings, level, logging, _setup_error_logging_to_file, _setup_logging_to_stdout):
	main.setup_logging(settings)

	_setup_error_logging_to_file.assert_called_once_with()
	_setup_logging_to_stdout.assert_called_once_with(getattr(logging, level))