1
0
mirror of https://github.com/ansible/awx.git synced 2024-10-26 16:25:06 +03:00

Create stubs for various services

This commit is contained in:
Michael DeHaan 2013-02-28 09:20:31 -05:00
parent 853021a11e
commit 17bfe1b2e1
52 changed files with 326 additions and 2 deletions

BIN
acom/__init__.pyc Normal file

Binary file not shown.

0
acom/audits/__init__.py Normal file
View File

3
acom/audits/models.py Normal file
View File

@ -0,0 +1,3 @@
from django.db import models
# Create your models here.

23
acom/audits/tests.py Normal file
View File

@ -0,0 +1,23 @@
"""
This file demonstrates two different styles of tests (one doctest and one
unittest). These will both pass when you run "manage.py test".
Replace these with more appropriate tests for your application.
"""
from django.test import TestCase
class SimpleTest(TestCase):
def test_basic_addition(self):
"""
Tests that 1 + 1 always equals 2.
"""
self.failUnlessEqual(1 + 1, 2)
__test__ = {"doctest": """
Another way to test that 1 + 1 is equal to 2.
>>> 1 + 1 == 2
True
"""}

1
acom/audits/views.py Normal file
View File

@ -0,0 +1 @@
# Create your views here.

0
acom/events/__init__.py Normal file
View File

3
acom/events/models.py Normal file
View File

@ -0,0 +1,3 @@
from django.db import models
# Create your models here.

23
acom/events/tests.py Normal file
View File

@ -0,0 +1,23 @@
"""
This file demonstrates two different styles of tests (one doctest and one
unittest). These will both pass when you run "manage.py test".
Replace these with more appropriate tests for your application.
"""
from django.test import TestCase
class SimpleTest(TestCase):
def test_basic_addition(self):
"""
Tests that 1 + 1 always equals 2.
"""
self.failUnlessEqual(1 + 1, 2)
__test__ = {"doctest": """
Another way to test that 1 + 1 is equal to 2.
>>> 1 + 1 == 2
True
"""}

1
acom/events/views.py Normal file
View File

@ -0,0 +1 @@
# Create your views here.

0
acom/groups/__init__.py Normal file
View File

3
acom/groups/models.py Normal file
View File

@ -0,0 +1,3 @@
from django.db import models
# Create your models here.

23
acom/groups/tests.py Normal file
View File

@ -0,0 +1,23 @@
"""
This file demonstrates two different styles of tests (one doctest and one
unittest). These will both pass when you run "manage.py test".
Replace these with more appropriate tests for your application.
"""
from django.test import TestCase
class SimpleTest(TestCase):
def test_basic_addition(self):
"""
Tests that 1 + 1 always equals 2.
"""
self.failUnlessEqual(1 + 1, 2)
__test__ = {"doctest": """
Another way to test that 1 + 1 is equal to 2.
>>> 1 + 1 == 2
True
"""}

1
acom/groups/views.py Normal file
View File

@ -0,0 +1 @@
# Create your views here.

0
acom/hosts/__init__.py Normal file
View File

3
acom/hosts/models.py Normal file
View File

@ -0,0 +1,3 @@
from django.db import models
# Create your models here.

23
acom/hosts/tests.py Normal file
View File

@ -0,0 +1,23 @@
"""
This file demonstrates two different styles of tests (one doctest and one
unittest). These will both pass when you run "manage.py test".
Replace these with more appropriate tests for your application.
"""
from django.test import TestCase
class SimpleTest(TestCase):
def test_basic_addition(self):
"""
Tests that 1 + 1 always equals 2.
"""
self.failUnlessEqual(1 + 1, 2)
__test__ = {"doctest": """
Another way to test that 1 + 1 is equal to 2.
>>> 1 + 1 == 2
True
"""}

1
acom/hosts/views.py Normal file
View File

@ -0,0 +1 @@
# Create your views here.

View File

3
acom/inventory/models.py Normal file
View File

@ -0,0 +1,3 @@
from django.db import models
# Create your models here.

23
acom/inventory/tests.py Normal file
View File

@ -0,0 +1,23 @@
"""
This file demonstrates two different styles of tests (one doctest and one
unittest). These will both pass when you run "manage.py test".
Replace these with more appropriate tests for your application.
"""
from django.test import TestCase
class SimpleTest(TestCase):
def test_basic_addition(self):
"""
Tests that 1 + 1 always equals 2.
"""
self.failUnlessEqual(1 + 1, 2)
__test__ = {"doctest": """
Another way to test that 1 + 1 is equal to 2.
>>> 1 + 1 == 2
True
"""}

1
acom/inventory/views.py Normal file
View File

@ -0,0 +1 @@
# Create your views here.

0
acom/jobs/__init__.py Normal file
View File

3
acom/jobs/models.py Normal file
View File

@ -0,0 +1,3 @@
from django.db import models
# Create your models here.

23
acom/jobs/tests.py Normal file
View File

@ -0,0 +1,23 @@
"""
This file demonstrates two different styles of tests (one doctest and one
unittest). These will both pass when you run "manage.py test".
Replace these with more appropriate tests for your application.
"""
from django.test import TestCase
class SimpleTest(TestCase):
def test_basic_addition(self):
"""
Tests that 1 + 1 always equals 2.
"""
self.failUnlessEqual(1 + 1, 2)
__test__ = {"doctest": """
Another way to test that 1 + 1 is equal to 2.
>>> 1 + 1 == 2
True
"""}

1
acom/jobs/views.py Normal file
View File

@ -0,0 +1 @@
# Create your views here.

0
acom/orgs/__init__.py Normal file
View File

3
acom/orgs/models.py Normal file
View File

@ -0,0 +1,3 @@
from django.db import models
# Create your models here.

23
acom/orgs/tests.py Normal file
View File

@ -0,0 +1,23 @@
"""
This file demonstrates two different styles of tests (one doctest and one
unittest). These will both pass when you run "manage.py test".
Replace these with more appropriate tests for your application.
"""
from django.test import TestCase
class SimpleTest(TestCase):
def test_basic_addition(self):
"""
Tests that 1 + 1 always equals 2.
"""
self.failUnlessEqual(1 + 1, 2)
__test__ = {"doctest": """
Another way to test that 1 + 1 is equal to 2.
>>> 1 + 1 == 2
True
"""}

1
acom/orgs/views.py Normal file
View File

@ -0,0 +1 @@
# Create your views here.

View File

View File

@ -0,0 +1,3 @@
from django.db import models
# Create your models here.

23
acom/permissions/tests.py Normal file
View File

@ -0,0 +1,23 @@
"""
This file demonstrates two different styles of tests (one doctest and one
unittest). These will both pass when you run "manage.py test".
Replace these with more appropriate tests for your application.
"""
from django.test import TestCase
class SimpleTest(TestCase):
def test_basic_addition(self):
"""
Tests that 1 + 1 always equals 2.
"""
self.failUnlessEqual(1 + 1, 2)
__test__ = {"doctest": """
Another way to test that 1 + 1 is equal to 2.
>>> 1 + 1 == 2
True
"""}

View File

@ -0,0 +1 @@
# Create your views here.

View File

3
acom/projects/models.py Normal file
View File

@ -0,0 +1,3 @@
from django.db import models
# Create your models here.

23
acom/projects/tests.py Normal file
View File

@ -0,0 +1,23 @@
"""
This file demonstrates two different styles of tests (one doctest and one
unittest). These will both pass when you run "manage.py test".
Replace these with more appropriate tests for your application.
"""
from django.test import TestCase
class SimpleTest(TestCase):
def test_basic_addition(self):
"""
Tests that 1 + 1 always equals 2.
"""
self.failUnlessEqual(1 + 1, 2)
__test__ = {"doctest": """
Another way to test that 1 + 1 is equal to 2.
>>> 1 + 1 == 2
True
"""}

1
acom/projects/views.py Normal file
View File

@ -0,0 +1 @@
# Create your views here.

0
acom/reports/__init__.py Normal file
View File

3
acom/reports/models.py Normal file
View File

@ -0,0 +1,3 @@
from django.db import models
# Create your models here.

23
acom/reports/tests.py Normal file
View File

@ -0,0 +1,23 @@
"""
This file demonstrates two different styles of tests (one doctest and one
unittest). These will both pass when you run "manage.py test".
Replace these with more appropriate tests for your application.
"""
from django.test import TestCase
class SimpleTest(TestCase):
def test_basic_addition(self):
"""
Tests that 1 + 1 always equals 2.
"""
self.failUnlessEqual(1 + 1, 2)
__test__ = {"doctest": """
Another way to test that 1 + 1 is equal to 2.
>>> 1 + 1 == 2
True
"""}

1
acom/reports/views.py Normal file
View File

@ -0,0 +1 @@
# Create your views here.

View File

@ -11,7 +11,7 @@ MANAGERS = ADMINS
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.', # Add 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.
'ENGINE': 'postgresql_psycopg2', # Add 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.
'NAME': '', # Or path to database file if using sqlite3.
'USER': '', # Not used with sqlite3.
'PASSWORD': '', # Not used with sqlite3.
@ -27,7 +27,7 @@ DATABASES = {
# timezone as the operating system.
# If running in a Windows environment this must be set to the same as your
# system time zone.
TIME_ZONE = 'America/Chicago'
TIME_ZONE = 'America/NewYork'
# Language code for this installation. All choices can be found here:
# http://www.i18nguy.com/unicode/language-identifiers.html

BIN
acom/settings.pyc Normal file

Binary file not shown.

0
acom/teams/__init__.py Normal file
View File

3
acom/teams/models.py Normal file
View File

@ -0,0 +1,3 @@
from django.db import models
# Create your models here.

23
acom/teams/tests.py Normal file
View File

@ -0,0 +1,23 @@
"""
This file demonstrates two different styles of tests (one doctest and one
unittest). These will both pass when you run "manage.py test".
Replace these with more appropriate tests for your application.
"""
from django.test import TestCase
class SimpleTest(TestCase):
def test_basic_addition(self):
"""
Tests that 1 + 1 always equals 2.
"""
self.failUnlessEqual(1 + 1, 2)
__test__ = {"doctest": """
Another way to test that 1 + 1 is equal to 2.
>>> 1 + 1 == 2
True
"""}

1
acom/teams/views.py Normal file
View File

@ -0,0 +1 @@
# Create your views here.

BIN
acom/urls.pyc Normal file

Binary file not shown.

0
acom/users/__init__.py Normal file
View File

3
acom/users/models.py Normal file
View File

@ -0,0 +1,3 @@
from django.db import models
# Create your models here.

23
acom/users/tests.py Normal file
View File

@ -0,0 +1,23 @@
"""
This file demonstrates two different styles of tests (one doctest and one
unittest). These will both pass when you run "manage.py test".
Replace these with more appropriate tests for your application.
"""
from django.test import TestCase
class SimpleTest(TestCase):
def test_basic_addition(self):
"""
Tests that 1 + 1 always equals 2.
"""
self.failUnlessEqual(1 + 1, 2)
__test__ = {"doctest": """
Another way to test that 1 + 1 is equal to 2.
>>> 1 + 1 == 2
True
"""}

1
acom/users/views.py Normal file
View File

@ -0,0 +1 @@
# Create your views here.