-
Notifications
You must be signed in to change notification settings - Fork 709
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
60 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
language: python | ||
python: | ||
- 2.7 | ||
- 3.3 | ||
- 3.4 | ||
- pypy | ||
env: | ||
- DJANGO=1.9.1 | ||
before_install: | ||
- export DJANGO_SETTINGS_MODULE=suit.tests.settings | ||
install: | ||
- pip install -q Django==$DJANGO --use-mirrors | ||
- pip install . --use-mirrors | ||
script: | ||
- django-admin test suit |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
DATABASES = { | ||
'default': { | ||
'ENGINE': 'django.db.backends.sqlite3', | ||
'NAME': ':memory:', | ||
} | ||
} | ||
|
||
INSTALLED_APPS = [ | ||
'suit', | ||
'django.contrib.sessions', | ||
'django.contrib.auth', | ||
'django.contrib.contenttypes', | ||
'django.contrib.sites', | ||
] | ||
|
||
MIDDLEWARE_CLASSES = [ | ||
'django.middleware.security.SecurityMiddleware', | ||
'django.contrib.sessions.middleware.SessionMiddleware', | ||
'django.middleware.common.CommonMiddleware', | ||
'django.middleware.csrf.CsrfViewMiddleware', | ||
'django.contrib.auth.middleware.AuthenticationMiddleware', | ||
'django.contrib.auth.middleware.SessionAuthenticationMiddleware', | ||
'django.contrib.messages.middleware.MessageMiddleware', | ||
'django.middleware.clickjacking.XFrameOptionsMiddleware', | ||
] | ||
# ROOT_URLCONF = 'tests.urls' | ||
|
||
SITE_ID = 1 | ||
SECRET_KEY = 'secret-key' | ||
|
||
# ROOT_URLCONF = 'tests.urls' | ||
# STATIC_URL = '/site_media/static/' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
from django.test import TestCase | ||
from suit.menu import ParentItem | ||
|
||
|
||
class TestMenuTestCase(TestCase): | ||
def setUp(self): | ||
pass | ||
|
||
def test_method(self): | ||
""" | ||
Just a dummy test case to satisfy Travis until all the tests are finished | ||
""" | ||
self.assertEqual(ParentItem(app='abc')._key(), 'abc') |