forked from vernondcole/formhub
-
Notifications
You must be signed in to change notification settings - Fork 5
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
39 changed files
with
372 additions
and
160 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 |
---|---|---|
|
@@ -16,7 +16,10 @@ install: | |
- python manage.py syncdb --noinput | ||
- python manage.py migrate --noinput | ||
script: | ||
- python manage.py test --noinput --settings=formhub.preset.travis_test | ||
- python manage.py test --noinput --settings=formhub.preset.ehealth_test | ||
- ./js_tests/EnvJasmine/bin/run_all_tests.sh --testDir=../ --configFile=../env_jasmine.conf.js | ||
notifications: | ||
irc: "irc.freenode.org#sel-columbia" | ||
email: | ||
- [email protected] | ||
flowdock: 232485f7661e644ae5878944c2597042 | ||
|
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 +0,0 @@ | ||
from tests import * | ||
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 +1,9 @@ | ||
from tests import * | ||
from test_api import * | ||
from test_data_api import * | ||
from test_forms_api import * | ||
from test_models import * | ||
from test_orgs_api import * | ||
from test_profiles_api import * | ||
from test_projects_api import * | ||
from test_teams_api import * | ||
from test_users_api import * |
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,65 @@ | ||
# | ||
# Alter this skeleton to agree with the needs of your local environment | ||
|
||
# Note: if you are using a URL 12-Factor configuration scheme, you will not be using this file | ||
|
||
# important thing we do here is to import all those symbols that are defined in settings.py | ||
from ..settings import * # get most settings from ../settings.py | ||
|
||
import os | ||
|
||
# or perhaps you would prefer something like: | ||
# from staging import * # which in turn imports ../settings.py | ||
|
||
import logging | ||
import tempfile | ||
south_logger=logging.getLogger('south') | ||
south_logger.setLevel(logging.INFO) | ||
|
||
|
||
# # # and now you can override the settings which we just got from settings.py # # # # | ||
|
||
# for example, choose a different database... | ||
DATABASES = { | ||
'default': { | ||
'ENGINE': 'django.db.backends.postgresql_psycopg2', | ||
'NAME': 'FormhubDjangoDB', | ||
'USER': 'postgres', | ||
'PASSWORD': '', | ||
'HOST': '', | ||
#'OPTIONS': { | ||
# 'autocommit': True, # NOTE: this option becomes obsolete in django 1.6 | ||
#} | ||
}, | ||
} | ||
# or: | ||
DEBUG = True | ||
|
||
SECRET_KEY = 'mlfs33^s1l4xf6a36$0#srgcpj%dd*sisfo6HOktYXB9y' | ||
|
||
EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend' | ||
|
||
TESTING_MODE = True | ||
|
||
|
||
TOUCHFORMS_URL = 'http://localhost:8000/' | ||
|
||
ENKETO_URL = 'https://enketo.org/' | ||
#ENKETO_API_TOKEN = 'nfg5qaxk5oe' | ||
|
||
#this token is needed for testing | ||
ENKETO_API_TOKEN = 'abc' | ||
|
||
CELERY_ALWAYS_EAGER = True | ||
CELERY_EAGER_PROPAGATES_EXCEPTIONS = True | ||
|
||
|
||
BROKER_BACKEND = 'memory' | ||
|
||
#MEDIA_ROOT = os.path.join(PROJECT_ROOT, 'media/') | ||
|
||
_temp_media = tempfile.mkdtemp() | ||
MEDIA_ROOT = _temp_media | ||
MEDIA_ROOT = os.path.join(PROJECT_ROOT, 'media/') | ||
|
||
#DEFAULT_FILE_STORAGE = 'django.core.files.storage.FileSystemStorage' |
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,29 +1,29 @@ | ||
#from test_crowdforms import TestCrowdforms | ||
#from test_csv_export import TestExport | ||
#from test_form_api import TestFormAPI | ||
#from test_form_public_api import TestFormPublicAPI | ||
#from test_form_auth import TestFormAuth | ||
#from test_form_edit import TestFormEdit | ||
#from test_form_enter_data import TestFormEnterData | ||
#from test_form_errors import TestFormErrors | ||
#from test_form_exports import TestFormExports | ||
#from test_form_gallery import TestFormGallery | ||
#from test_form_metadata import TestFormMetadata | ||
#from test_form_permissions import TestFormPermissions | ||
#from test_form_show import TestFormShow | ||
#from test_form_show_submission import TestFormShowSubmission | ||
#from test_google_docs_export import TestGoogleDocsExport | ||
#from test_google_doc import TestGoogleDoc | ||
#from test_gps import TestGPS | ||
#from test_http_auth import TestBasicHttpAuthentication | ||
#from test_kml_export import TestKMLExport | ||
#from test_past_bugs import TestCSVExport, TestInputs, TestSubmissionBugs,\ | ||
# TestCascading | ||
#from test_process import TestSite | ||
#from test_user_id_string_unique_together import TestUnique | ||
#from test_user_login import TestUserLogin | ||
#from test_user_login import TestUserReservedNames | ||
#from test_user_profile import TestUserProfile | ||
#from test_user_settings import TestUserSettings | ||
#from test_form_api_delete import TestFormAPIDelete | ||
#from test_audit_log import TestAuditLog | ||
from test_audit_log import * | ||
from test_base import * | ||
from test_crowdforms import * | ||
from test_csv_export import * | ||
from test_form_api import * | ||
from test_form_api_delete import * | ||
from test_form_auth import * | ||
from test_form_edit import * | ||
from test_form_enter_data import * | ||
from test_form_errors import * | ||
from test_form_exports import * | ||
from test_form_gallery import * | ||
from test_form_metadata import * | ||
from test_form_permissions import * | ||
from test_form_public_api import * | ||
from test_form_show import * | ||
from test_form_show_submission import * | ||
from test_google_doc import * | ||
from test_google_docs_export import * | ||
from test_gps import * | ||
from test_http_auth import * | ||
from test_kml_export import * | ||
from test_past_bugs import * | ||
from test_people_roles import * | ||
from test_process import * | ||
from test_user_id_string_unique_together import * | ||
from test_user_login import * | ||
from test_user_profile import * | ||
from test_user_settings import * |
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
Oops, something went wrong.