-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
major bug fix, new feature for forms:
- test config - moonsheep token - templatetag that needs to be included by apps using moonsheep so sent form was aware of resolved task - resolves #95 - resolves #101
- Loading branch information
Showing
15 changed files
with
163 additions
and
92 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,6 +1,10 @@ | ||
.idea/ | ||
__pycache__/ | ||
node_modules/ | ||
|
||
*.pyc | ||
.tox/ | ||
.coverage | ||
*.egg-info/ | ||
*.egg-info | ||
.eggs/ | ||
build/ |
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,37 @@ | ||
language: python | ||
matrix: | ||
include: | ||
- python: 3.3 | ||
env: TOXENV=py33-18 | ||
- python: 3.4 | ||
env: TOXENV=py34-18 | ||
- python: 3.4 | ||
env: TOXENV=py34-19 | ||
- python: 3.4 | ||
env: TOXENV=py34-110 | ||
- python: 3.4 | ||
env: TOXENV=py34-111 | ||
- python: 3.4 | ||
env: TOXENV=py34-20 | ||
- python: 3.5 | ||
env: TOXENV=py35-18 | ||
- python: 3.5 | ||
env: TOXENV=py35-19 | ||
- python: 3.5 | ||
env: TOXENV=py35-110 | ||
- python: 3.5 | ||
env: TOXENV=py35-111 | ||
- python: 3.5 | ||
env: TOXENV=py35-20 | ||
- python: 3.6 | ||
env: TOXENV=py36-111 | ||
- python: 3.6 | ||
env: TOXENV=py36-20 | ||
# command to install dependencies | ||
install: | ||
- pip install tox | ||
# command to run tests | ||
script: | ||
- tox -e $TOXENV | ||
# containers | ||
sudo: false |
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,5 +1,6 @@ | ||
import importlib | ||
import pbclient | ||
|
||
from .verifiers import MIN_CONFIDENCE, DEFAULT_DICT_VERIFIER | ||
|
||
|
||
|
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,2 @@ | ||
<input type="hidden" name="_task_id" value="{{ task_id }}" /> | ||
<input type="hidden" name="_project_id" value="{{ project_id }}" /> |
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 @@ | ||
from django.template import Library | ||
|
||
register = Library() | ||
|
||
|
||
@register.inclusion_tag('token.html') | ||
def moonsheep_token(task): | ||
return { | ||
'task_id': task.id, | ||
'project_id': task.project_id | ||
} |
This file was deleted.
Oops, something went wrong.
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,10 +1,12 @@ | ||
SECRET_KEY = 'fake-key' | ||
|
||
INSTALLED_APPS = [ | ||
"moonsheep", | ||
] | ||
|
||
DATABASES = { | ||
'default': { | ||
'ENGINE': 'django.db.backends.sqlite3', | ||
'NAME': ':memory:', | ||
} | ||
} | ||
} |
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,15 +1,19 @@ | ||
#!/usr/bin/env python | ||
import os | ||
import sys | ||
|
||
import django | ||
|
||
from django.conf import settings | ||
from django.test.utils import get_runner | ||
|
||
if __name__ == "__main__": | ||
|
||
def runtests(): | ||
os.environ['DJANGO_SETTINGS_MODULE'] = 'moonsheep.tests.test_settings' | ||
django.setup() | ||
TestRunner = get_runner(settings) | ||
test_runner = TestRunner() | ||
failures = test_runner.run_tests(["moonsheep.tests"]) | ||
sys.exit(bool(failures)) | ||
sys.exit(bool(failures)) | ||
|
||
|
||
if __name__ == "__main__": | ||
runtests() |
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 |
---|---|---|
|
@@ -19,6 +19,7 @@ | |
author_email='[email protected]', | ||
url='https://github.com/TransparenCEE/moonsheep/', | ||
download_url='', | ||
test_suite='runtests.runtests', | ||
license='AGPL-3.0', | ||
install_requires=[ | ||
'Django>=1.11', | ||
|
Binary file not shown.
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,7 +1,16 @@ | ||
[tox] | ||
envlist = py27, py33, flake8 | ||
envlist = | ||
py33-{18} | ||
py34-{18,19,110,111,20} | ||
py35-{18,19,110,111,20} | ||
py36-{111,20} | ||
|
||
[testenv] | ||
commands = | ||
pip install -e . | ||
django-admin.py test --settings=test_settings | ||
deps = | ||
18: Django >= 1.8, < 1.9 | ||
19: Django >= 1.9, < 1.10 | ||
110: Django >= 1.10, < 1.11 | ||
111: Django >= 1.11, < 2.0 | ||
20: Django >= 2.0, < 2.1 | ||
commands = python setup.py test | ||
skip_missing_interpreters = true |
7b9bf0c
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
moonsheep_token.py
nazwałbymmoonsheep.py
tak zeby tam wrzucic w przyszlosci wiele tagów i robic