add some tests
This commit is contained in:
parent
cc7fa1b433
commit
8a4cda7f58
|
@ -6,6 +6,6 @@ python:
|
|||
before_install:
|
||||
- sudo apt-get install -y libxml2-dev libxslt1-dev zlib1g-dev libffi-dev libyaml-dev libssl-dev
|
||||
|
||||
install:
|
||||
- "python setup.py install"
|
||||
install: "pip install -r dev-requirements"
|
||||
|
||||
script: nosetests
|
||||
|
|
3
dev-requirements.txt
Normal file
3
dev-requirements.txt
Normal file
|
@ -0,0 +1,3 @@
|
|||
-r requirements.txt
|
||||
Flask-Testing==0.4.2
|
||||
nose==1.3.4
|
|
@ -21,9 +21,9 @@ sudo apt-get update
|
|||
sudo apt-get install -y software-properties-common python-software-properties
|
||||
sudo add-apt-repository -y ppa:chris-lea/node.js
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y python build-essential git libpcre3-dev \
|
||||
python-pip python-virtualenv python-dev pkg-config curl libxml2-dev libxslt1-dev zlib1g-dev \
|
||||
libffi-dev nodejs libyaml-dev libssl-dev
|
||||
sudo apt-get install -y python build-essential pkg-config git \
|
||||
python-pip python-virtualenv python-dev libxml2-dev libxslt1-dev zlib1g-dev \
|
||||
libffi-dev libyaml-dev libssl-dev nodejs
|
||||
|
||||
# Default cache is memoization
|
||||
|
||||
|
|
|
@ -4,7 +4,6 @@ from realms.lib.util import random_string
|
|||
from subprocess import call
|
||||
import click
|
||||
import json
|
||||
import sys
|
||||
|
||||
|
||||
@cli.command()
|
||||
|
@ -85,6 +84,7 @@ def setup_redis(**kw):
|
|||
def get_pip():
|
||||
""" Get virtualenv path for pip
|
||||
"""
|
||||
import sys
|
||||
return sys.prefix + '/bin/pip'
|
||||
|
||||
|
||||
|
|
|
@ -1,10 +1,12 @@
|
|||
import sys
|
||||
if 'threading' in sys.modules:
|
||||
del sys.modules['threading']
|
||||
|
||||
# Monkey patch stdlib.
|
||||
import gevent.monkey
|
||||
gevent.monkey.patch_all(aggressive=False, subprocess=True)
|
||||
|
||||
# Set default encoding to UTF-8
|
||||
import sys
|
||||
|
||||
reload(sys)
|
||||
# noinspection PyUnresolvedReferences
|
||||
sys.setdefaultencoding('utf-8')
|
||||
|
|
|
@ -16,11 +16,10 @@
|
|||
</form>
|
||||
</div>
|
||||
{% endif %}
|
||||
<div id="page-content" style="display:none">
|
||||
{{ page.data }}
|
||||
</div>
|
||||
<div id="page-content"></div>
|
||||
|
||||
{% endblock %}
|
||||
|
||||
{% block js %}
|
||||
<script>
|
||||
$(function(){
|
||||
|
|
Loading…
Reference in a new issue