mirror of
https://github.com/ansible/awx.git
synced 2024-11-02 01:21:21 +03:00
use python2.6 safe unittest2
This commit is contained in:
parent
d3984e45ba
commit
34ecd4e5b6
@ -11,7 +11,7 @@ import sys
|
||||
import tempfile
|
||||
import time
|
||||
import urlparse
|
||||
import unittest
|
||||
import unittest2 as unittest
|
||||
|
||||
# Django
|
||||
import django
|
||||
@ -26,9 +26,6 @@ from django.test.utils import override_settings
|
||||
from awx.main.models import * # noqa
|
||||
from awx.main.tests.base import BaseTest, BaseLiveServerTest
|
||||
|
||||
if not hasattr(unittest, 'skipIf'):
|
||||
import unittest2 as unittest
|
||||
|
||||
__all__ = ['CreateDefaultOrgTest', 'DumpDataTest', 'CleanupDeletedTest',
|
||||
'CleanupJobsTest', 'CleanupActivityStreamTest',
|
||||
'InventoryImportTest']
|
||||
|
@ -5,7 +5,7 @@
|
||||
import time
|
||||
from datetime import datetime
|
||||
import mock
|
||||
import unittest
|
||||
import unittest2 as unittest
|
||||
from copy import deepcopy
|
||||
from mock import MagicMock
|
||||
|
||||
|
@ -2,7 +2,7 @@
|
||||
# All Rights Reserved
|
||||
|
||||
# Python
|
||||
import unittest
|
||||
import unittest2 as unittest
|
||||
|
||||
# Django
|
||||
from django.core.urlresolvers import reverse
|
||||
|
@ -8,7 +8,7 @@ import os
|
||||
import shutil
|
||||
import subprocess
|
||||
import tempfile
|
||||
import unittest
|
||||
import unittest2 as unittest
|
||||
|
||||
# Django
|
||||
from django.conf import settings
|
||||
|
Loading…
Reference in New Issue
Block a user