add *.pyc to .gitignore; remove repeated INSTALLED_APPS from test_project.settings; fix check dj-database-url returned None values to empty string

This commit is contained in:
joke2k 2014-04-17 16:22:31 +02:00
parent 035c3301a8
commit 8a8f99ab68
3 changed files with 6 additions and 19 deletions

3
.gitignore vendored
View file

@ -4,4 +4,5 @@ docs/_build
*.egg
test.db
build/
.tox/
.tox/
*.pyc

View file

@ -160,20 +160,6 @@ class Base(Configuration):
}
}
INSTALLED_APPS = (
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.sites',
'django.contrib.messages',
'django.contrib.staticfiles',
# Uncomment the next line to enable the admin:
# 'django.contrib.admin',
# Uncomment the next line to enable admin documentation:
# 'django.contrib.admindocs',
'configurations',
)
class Debug(Base):
YEAH = True

View file

@ -246,11 +246,11 @@ class ValueTests(TestCase):
self.assertEqual(value.setup('DATABASE_URL'), {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'HOST': None,
'HOST': '',
'NAME': ':memory:',
'PASSWORD': None,
'PORT': None,
'USER': None,
'PASSWORD': '',
'PORT': '',
'USER': '',
}})
def test_email_url_value(self):