#!/usr/bin/env python
from djeasytests.testsetup import TestSetup

settings = dict(
    DEBUG=True,
    SITE_ID=1,
    INSTALLED_APPS = [
        'django.contrib.contenttypes',
        'taggit',
        'taggit_classy',
        'taggit_classy_testapp'       
    ]
)

testsetup = TestSetup(appname='taggit_classy', test_settings=settings)

if __name__ == '__main__':
    testsetup.run(__file__)
Example #2
0
    dict(
        ROOT_URLCONF='shop_example.urls',
        DATABASES={
            'default': {
                'ENGINE': 'django.db.backends.sqlite3',
                'NAME': 'shopexampledb.sqlite',
            }
        },
        INSTALLED_APPS=[
            'shop_example', 'django.contrib.auth',
            'django.contrib.contenttypes', 'django.contrib.sessions',
            'django.contrib.admin', 'django.contrib.sites',
            'django.contrib.staticfiles', 'shop', 'shop_categories', 'mptt',
            'treeadmin', 'south', 'tinymce'
        ],
        SHOP_PRODUCT_MODEL='shop_example.models.product.Product',
        SHOP_ADDRESS_MODEL='shop_example.models.address.Address',
        SHOP_CATEGORIES_CATEGORY_MODEL='shop_example.models.category.Category',
        SHOP_PAYMENT_BACKENDS=[
            'shop.payment.backends.pay_on_delivery.PayOnDeliveryBackend'
        ],
        SHOP_SHIPPING_BACKENDS=[
            'shop.shipping.backends.flat_rate.FlatRateShipping'
        ]))

testsetup = TestSetup(appname='shop_example',
                      default_settings=default_settings)

if __name__ == '__main__':
    testsetup.run('shell')
#!/usr/bin/env python
from djeasytests.testsetup import TestSetup, default_settings

default_settings.update(dict(
    ROOT_URLCONF='thing.urls',
    DATABASES = {
        'default': {
            'ENGINE': 'django.db.backends.sqlite3',
            'NAME': ':memory:',
        }
    },
    INSTALLED_APPS = [
        'django.contrib.auth',
        'django.contrib.contenttypes',
        'django.contrib.sessions',
        'django.contrib.admin',
        'django.contrib.sites',
        'django.contrib.staticfiles',
        'thing',
    ]
))

testsetup = TestSetup(appname='thing',
                      default_settings=default_settings)

if __name__ == '__main__':
    testsetup.run('tests')
Example #4
0
    INSTALLED_APPS = [
        'shop_example',
        'django.contrib.auth',
        'django.contrib.contenttypes',
        'django.contrib.sessions',
        'django.contrib.admin',
        'django.contrib.sites',
        'django.contrib.staticfiles', 
        'shop',
        'shop_categories',
        'mptt',
        'treeadmin',
        'south',
        'tinymce'
    ],
    SHOP_PRODUCT_MODEL = 'shop_example.models.product.Product',
    SHOP_ADDRESS_MODEL = 'shop_example.models.address.Address',
    SHOP_CATEGORIES_CATEGORY_MODEL = 'shop_example.models.category.Category',
    SHOP_PAYMENT_BACKENDS = [
        'shop.payment.backends.pay_on_delivery.PayOnDeliveryBackend'
    ],
    SHOP_SHIPPING_BACKENDS = [
        'shop.shipping.backends.flat_rate.FlatRateShipping'
    ]  
))

testsetup = TestSetup(appname='shop_example', default_settings=default_settings)

if __name__ == '__main__':
    testsetup.run('manage')
Example #5
0
#!/usr/bin/env python
from djeasytests.testsetup import TestSetup, default_settings

default_settings.update(
    dict(ROOT_URLCONF='thing.urls',
         DATABASES={
             'default': {
                 'ENGINE': 'django.db.backends.sqlite3',
                 'NAME': ':memory:',
             }
         },
         INSTALLED_APPS=[
             'django.contrib.auth',
             'django.contrib.contenttypes',
             'django.contrib.sessions',
             'django.contrib.admin',
             'django.contrib.sites',
             'django.contrib.staticfiles',
             'thing',
         ]))

testsetup = TestSetup(appname='thing', default_settings=default_settings)

if __name__ == '__main__':
    testsetup.run('tests')
Example #6
0
    INSTALLED_APPS = [
        'shop_example',
        'django.contrib.auth',
        'django.contrib.contenttypes',
        'django.contrib.sessions',
        'django.contrib.admin',
        'django.contrib.sites',
        'django.contrib.staticfiles', 
        'shop',
        'shop_categories',
        'mptt',
        'treeadmin',
        'south',
        'tinymce'
    ],
    SHOP_PRODUCT_MODEL = 'shop_example.models.product.Product',
    SHOP_ADDRESS_MODEL = 'shop_example.models.address.Address',
    SHOP_CATEGORIES_CATEGORY_MODEL = 'shop_example.models.category.Category',
    SHOP_PAYMENT_BACKENDS = [
        'shop.payment.backends.pay_on_delivery.PayOnDeliveryBackend'
    ],
    SHOP_SHIPPING_BACKENDS = [
        'shop.shipping.backends.flat_rate.FlatRateShipping'
    ]  
))

testsetup = TestSetup(appname='shop_example', default_settings=default_settings)

if __name__ == '__main__':
    testsetup.run('shell')
Example #7
0
#!/usr/bin/env python
from djeasytests.testsetup import TestSetup
import shop_categories

settings = dict(SITE_ID=1,
                ROOT_URLCONF='shop_categories.test_utils.project.urls',
                INSTALLED_APPS=[
                    'django.contrib.auth', 'django.contrib.contenttypes',
                    'django.contrib.sessions', 'django.contrib.admin',
                    'django.contrib.sites', 'django.contrib.staticfiles',
                    'treeadmin', 'shop_categories',
                    'shop_categories.test_utils.project'
                ],
                SHOP_PRODUCT_MODEL=
                'shop_categories.test_utils.project.models.product.Product',
                SHOP_CATEGORIES_CATEGORY_MODEL=
                'shop_categories.test_utils.project.models.category.Category')

testsetup = TestSetup(appname='shop_categories',
                      test_settings=settings,
                      version=shop_categories.get_version())

if __name__ == '__main__':
    testsetup.run(__file__)