Exemplo n.º 1
0
    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))
Exemplo n.º 2
0
 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'))
Exemplo n.º 3
0
def enterprise_test(args):
    sh(
        NoseCommand.command(
            ENTERPRISE_TEST_REPORT,
            args,
            test_type='enterprise'
        )
    )
Exemplo n.º 4
0
    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))
Exemplo n.º 5
0
def e2e_wl_test(args):
    sh(NoseCommand.command(WHITE_LABEL_TEST_REPORT, args, test_type='wl'))
Exemplo n.º 6
0
def e2e_test(args):
    sh(NoseCommand.command(E2E_TEST_REPORT, args))
Exemplo n.º 7
0
 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())
Exemplo n.º 8
0
def e2e_test(args):
    sh(NoseCommand.command(E2E_TEST_REPORT, args))
Exemplo n.º 9
0
def enterprise_test(args):
    sh(
        NoseCommand.command(ENTERPRISE_TEST_REPORT,
                            args,
                            test_type='enterprise'))
Exemplo n.º 10
0
def e2e_wl_test(args):
    sh(NoseCommand.command(WHITE_LABEL_TEST_REPORT, args, test_type='wl'))