Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of github.com:modilabs/formhub into map-filter-…
…select_one-in-filter
- Loading branch information
Showing
13 changed files
with
170 additions
and
51 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 |
---|---|---|
@@ -1,40 +1,42 @@ | ||
/data | ||
error.log | ||
load_script.logs | ||
load_script.pid | ||
local_settings.py | ||
pyxform | ||
search_index | ||
site_media/attachments | ||
|
||
tmp/* | ||
*.pyc | ||
*.sql | ||
*.tar.gz | ||
*~ | ||
.DS_Store | ||
*.sqlite3 | ||
error.log | ||
site_media/css/sass/.sass-cache/* | ||
.sass-cache | ||
.odk | ||
*orig | ||
.idea | ||
search_index | ||
|
||
#for a local virtualenv (as done in mangrove repo) | ||
ve/ | ||
|
||
# file created by tests | ||
registration.xml | ||
tmp/* | ||
xform_manager_dataset.json | ||
|
||
# folder to hold csv files | ||
csvs | ||
|
||
xform_manager_dataset.json | ||
|
||
/data | ||
local_settings.py | ||
.~lock.* | ||
|
||
# media folder used by tests | ||
# todo: figure out a way to clean this up rather than ignore it. | ||
/test_media | ||
/media | ||
|
||
load_script.logs | ||
load_script.pid | ||
# file created by tests | ||
registration.xml | ||
|
||
# for a local virtualenv (as done in mangrove repo) | ||
ve/ | ||
|
||
.~lock.* | ||
.DS_Store | ||
.idea | ||
.odk | ||
.project | ||
.pydevproject | ||
.sass-cache | ||
.settings | ||
|
||
*.bak | ||
*.pyc | ||
*.sql | ||
*.sqlite3 | ||
*.tar.gz | ||
*~ | ||
*orig |
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,29 @@ | ||
# mysql | ||
#DATABASES = { | ||
# 'default': { | ||
# 'ENGINE': 'django.db.backends.mysql', | ||
# 'NAME': 'formhub_dev', | ||
# 'USER': 'formhub_dev', | ||
# 'PASSWORD': '', | ||
# } | ||
#} | ||
|
||
# postgres | ||
#DATABASES = { | ||
# 'default': { | ||
# 'ENGINE': 'django.db.backends.postgresql_psycopg2', | ||
# 'NAME': 'formhub_dev', | ||
# 'USER': 'formhub_dev', | ||
# 'PASSWORD': '', | ||
# } | ||
#} | ||
|
||
# sqlite | ||
DATABASES = { | ||
'default': { | ||
'ENGINE': 'django.db.backends.sqlite3', | ||
'NAME': 'db.sqlite3', | ||
} | ||
} | ||
|
||
TOUCHFORMS_URL = 'http://localhost:9000/' |
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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
from main.tests.test_base import MainTestCase | ||
from django.core.urlresolvers import reverse | ||
from odk_logger.views import download_xlsform | ||
from odk_viewer.xls_writer import XlsWriter | ||
|
||
class TestExports(MainTestCase): | ||
def test_unique_xls_sheet_name(self): | ||
xls_writer = XlsWriter() | ||
xls_writer.add_sheet('section9_pit_latrine_with_slab_group') | ||
xls_writer.add_sheet('section9_pit_latrine_without_slab_group') | ||
# create a set of sheet names keys | ||
sheet_names_set = set(xls_writer._sheets.keys()) | ||
self.assertEqual(len(sheet_names_set), 2) |
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.