mirror of
https://github.com/ansible/awx.git
synced 2026-05-09 02:17:37 -02:30
Merge pull request #2876 from anoek/test-skips
Skip troublesome old job tests
This commit is contained in:
@@ -1,6 +1,9 @@
|
|||||||
# Copyright (c) 2015 Ansible, Inc.
|
# Copyright (c) 2015 Ansible, Inc.
|
||||||
# All Rights Reserved.
|
# All Rights Reserved.
|
||||||
|
|
||||||
|
import os
|
||||||
|
import unittest2 as unittest
|
||||||
|
|
||||||
from django.conf import settings
|
from django.conf import settings
|
||||||
from django.test import LiveServerTestCase
|
from django.test import LiveServerTestCase
|
||||||
from django.test.utils import override_settings
|
from django.test.utils import override_settings
|
||||||
@@ -8,6 +11,7 @@ from django.test.utils import override_settings
|
|||||||
from awx.main.tests.job_base import BaseJobTestMixin
|
from awx.main.tests.job_base import BaseJobTestMixin
|
||||||
|
|
||||||
|
|
||||||
|
@unittest.skipIf(os.environ.get('SKIP_SLOW_TESTS', False), 'Skipping slow test')
|
||||||
@override_settings(CELERY_ALWAYS_EAGER=True,
|
@override_settings(CELERY_ALWAYS_EAGER=True,
|
||||||
CELERY_EAGER_PROPAGATES_EXCEPTIONS=True,
|
CELERY_EAGER_PROPAGATES_EXCEPTIONS=True,
|
||||||
ANSIBLE_TRANSPORT='local')
|
ANSIBLE_TRANSPORT='local')
|
||||||
|
|||||||
@@ -4,6 +4,8 @@
|
|||||||
# Python
|
# Python
|
||||||
from __future__ import absolute_import
|
from __future__ import absolute_import
|
||||||
import json
|
import json
|
||||||
|
import os
|
||||||
|
import unittest2 as unittest
|
||||||
|
|
||||||
# Django
|
# Django
|
||||||
from django.core.urlresolvers import reverse
|
from django.core.urlresolvers import reverse
|
||||||
@@ -15,6 +17,7 @@ from awx.main.tests.job_base import BaseJobTestMixin
|
|||||||
|
|
||||||
__all__ = ['JobRelaunchTest',]
|
__all__ = ['JobRelaunchTest',]
|
||||||
|
|
||||||
|
@unittest.skipIf(os.environ.get('SKIP_SLOW_TESTS', False), 'Skipping slow test')
|
||||||
class JobRelaunchTest(BaseJobTestMixin, BaseLiveServerTest):
|
class JobRelaunchTest(BaseJobTestMixin, BaseLiveServerTest):
|
||||||
|
|
||||||
def test_job_relaunch(self):
|
def test_job_relaunch(self):
|
||||||
|
|||||||
Reference in New Issue
Block a user