AC-505. Initial working task/tests for cloud inventory import.

This commit is contained in:
Chris Church
2013-09-30 22:08:05 -04:00
parent f7256ca343
commit 17c350d7e1
10 changed files with 286 additions and 39 deletions

View File

@@ -58,6 +58,11 @@ def prepare_env():
sys.modules['django.utils.six'] = sys.modules['six']
django.utils.six = sys.modules['django.utils.six']
from django.utils import six
# Use the AWX_TEST_DATABASE_NAME environment variable to specify the test
# database name to use when management command is run as an external
# program via unit tests.
if os.environ.get('AWX_TEST_DATABASE_NAME', None):
settings.DATABASES['default']['NAME'] = os.environ['AWX_TEST_DATABASE_NAME']
def manage():
# Prepare the AWX environment.