def test_custom_report_name_with_test_name(self): """ Verify paver test with test and report names given. """ test_name = 'lms/test_file.py' report_name = 'custom.xml' nose_command = NoseCommand.command( test_name=test_name, report_name=report_name) self.assertEqual(nose_command, self._expected_command( test_name=test_name, report_name=report_name)) test_name = 'lms/test_file.py:TestClass' nose_command = NoseCommand.command( test_name=test_name, report_name=report_name) self.assertEqual(nose_command, self._expected_command( test_name=test_name, report_name=report_name)) test_name = 'lms/test_file.py:TestClass.test_function' nose_command = NoseCommand.command( test_name=test_name, report_name=report_name) self.assertEqual(nose_command, self._expected_command( test_name=test_name, report_name=report_name))
def test_custom_report_name_with_no_test_name(self): """ Verify paver test with report name given but test name not given. """ nose_command = NoseCommand.command(report_name='custom.xml') self.assertEqual( nose_command, self._expected_command(report_name='custom.xml'))
def enterprise_test(args): sh( NoseCommand.command( ENTERPRISE_TEST_REPORT, args, test_type='enterprise' ) )
def test_no_report_name_with_test_name(self): """ Verify paver test with test name given but report name not given. """ test_name = 'lms/test_file.py' nose_command = NoseCommand.command(test_name=test_name) self.assertEqual(nose_command, self._expected_command( test_name=test_name)) test_name = 'lms/test_file.py:TestClass' nose_command = NoseCommand.command(test_name=test_name) self.assertEqual(nose_command, self._expected_command( test_name=test_name)) test_name = 'lms/test_file.py:TestClass.test_function' nose_command = NoseCommand.command(test_name=test_name) self.assertEqual(nose_command, self._expected_command( test_name=test_name))
def e2e_wl_test(args): sh(NoseCommand.command(WHITE_LABEL_TEST_REPORT, args, test_type='wl'))
def e2e_test(args): sh(NoseCommand.command(E2E_TEST_REPORT, args))
def test_no_report_name_with_no_test_name(self): """ Verify paver test with no report name and test name given. """ nose_command = NoseCommand.command() self.assertEqual(nose_command, self._expected_command())
def enterprise_test(args): sh( NoseCommand.command(ENTERPRISE_TEST_REPORT, args, test_type='enterprise'))