def test_can_start_tests_that_run_in_environment(self, mocked):
        """
        Test that we can start running the tests in the environment
        """
        instance = mocked.return_value

        run_test_in_environment(test_id="livetest")

        # Check provisioned
        instance.assert_has_calls([call()])
Пример #2
0
    def test_can_start_tests_that_run_in_environment(self, mocked):
        """
        Test that we can start running the tests in the environment
        """
        instance = mocked.return_value

        run_test_in_environment(test_id='livetest')

        # Check provisioned
        instance.assert_has_calls([
            call(),
        ])
Пример #3
0
    def test_run_test_environment_task(self):
        """
        Test that we can start tests in the test environment
        """
        test_id = '34fef34fsdf'

        name = 'livetest-pythonserver-{}'.format(test_id)

        container = GunicornDockerRunner(
            name=name, image='adsabs/pythonsimpleserver:v1.0.0')
        container.start()

        run_test_in_environment(test_id=test_id,
                                test_services=['adsrex'],
                                api_name=name)
Пример #4
0
    def test_run_test_environment_task(self):
        """
        Test that we can start tests in the test environment
        """
        test_id = '34fef34fsdf'

        name = 'livetest-pythonserver-{}'.format(test_id)

        container = GunicornDockerRunner(
            name=name,
            image='adsabs/pythonsimpleserver:v1.0.0'
        )
        container.start()

        run_test_in_environment(
            test_id=test_id,
            test_services=['adsrex'],
            api_name=name
        )