-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #327 from DemocracyClub/move_to_tox_and_pytest
Move to tox and pytest
- Loading branch information
Showing
21 changed files
with
127 additions
and
58 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 @@ | ||
[run] | ||
branch = True | ||
source = | ||
|
||
auth_helpers | ||
bulk_adding | ||
cached_counts | ||
candidates | ||
compat | ||
elections | ||
moderation_queue | ||
official_documents | ||
results | ||
tasks | ||
uk_results |
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 |
---|---|---|
|
@@ -11,3 +11,5 @@ __pycache__ | |
/mysite/settings/local.py | ||
/mysite/static/jsi18n | ||
.DS_Store | ||
.tox | ||
.cache |
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
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
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
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
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
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
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
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 |
---|---|---|
@@ -1,8 +1,5 @@ | ||
from nose.plugins.attrib import attr | ||
|
||
from candidates.tests.person_view_shared_tests_mixin import PersonViewSharedTestsMixin | ||
|
||
|
||
@attr(country='uk') | ||
class TestPersonView(PersonViewSharedTestsMixin): | ||
pass |
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
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
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
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,40 @@ | ||
# Only set this to True in development environments | ||
DEBUG = True | ||
|
||
# Set this to a long random string and keep it secret | ||
# This is a handy tool: | ||
# https://www.miniwebtool.com/django-secret-key-generator/ | ||
SECRET_KEY = None | ||
|
||
DATABASES = { | ||
'default': { | ||
'ENGINE': 'django.db.backends.postgresql_psycopg2', | ||
'NAME': '', | ||
'USER': '', | ||
'PASSWORD': '', | ||
}, | ||
} | ||
|
||
# A tuple of tuples containing (Full name, email address) | ||
ADMINS = () | ||
|
||
# **** Other settings that might be useful to change locally | ||
|
||
# ALLOWED_HOSTS = ['*'] | ||
# INTERNAL_IPS = ['127.0.0.1', 'localhost', ] | ||
|
||
# CACHES = { | ||
# "default": { | ||
# "BACKEND": "django.core.cache.backends.dummy.DummyCache", | ||
# } | ||
# } | ||
|
||
|
||
# **** Settings that might be useful in production | ||
|
||
# STATICFILES_STORAGE = 'pipeline.storage.PipelineCachedStorage' | ||
# SECURE_PROXY_SSL_HEADER = ('HTTP_X_FORWARDED_PROTO', 'https') | ||
# ACCOUNT_DEFAULT_HTTP_PROTOCOL = 'https' | ||
# RAVEN_CONFIG = { | ||
# 'dsn': '' | ||
# } |
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
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,3 @@ | ||
from .testing import * # noqa | ||
|
||
DATABASES['default']['NAME'] = 'postgres' |
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,11 @@ | ||
[pytest] | ||
norecursedirs = .tox /locale /static | ||
DJANGO_SETTINGS_MODULE = mysite.settings.base | ||
|
||
pep8ignore = | ||
.tox * | ||
|
||
env = | ||
RUN_ENV=test | ||
|
||
|
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
Oops, something went wrong.