Updates to hitch framework - also removed parameterized tests via jinja2 - it's really an advanced feature.

This commit is contained in:
Colm O'Connor 2015-09-22 18:14:02 +08:00
parent dc146fc0e8
commit 0724c00f1d
6 changed files with 33 additions and 35 deletions

View File

@ -55,3 +55,4 @@ node_modules/
# virtual environments # virtual environments
.env .env
.hitch

View File

@ -1,4 +0,0 @@
{% raw %}{% for python_version in python_versions %}
{% block test scoped %}
{% endblock %}
{% endfor %}{% endraw %}

View File

@ -45,12 +45,20 @@ class ExecutionEngine(hitchtest.ExecutionEngine):
shutdown_timeout=5.0, shutdown_timeout=5.0,
) )
postgres_user = hitchpostgres.PostgresUser("{{cookiecutter.repo_name}}", "password") postgres_user = hitchpostgres.PostgresUser(
"{{cookiecutter.repo_name}}",
"password"
)
self.services['Postgres'] = hitchpostgres.PostgresService( self.services['Postgres'] = hitchpostgres.PostgresService(
postgres_package=postgres_package, postgres_package=postgres_package,
users=[postgres_user, ], users=[postgres_user, ],
databases=[hitchpostgres.PostgresDatabase("{{cookiecutter.repo_name}}", postgres_user), ] databases=[
hitchpostgres.PostgresDatabase(
"{{cookiecutter.repo_name}}",
postgres_user
),
]
) )
self.services['HitchSMTP'] = hitchsmtp.HitchSMTPService(port=1025) self.services['HitchSMTP'] = hitchsmtp.HitchSMTPService(port=1025)

View File

@ -1,26 +1,42 @@
click==5.1 click==5.1
colorama==0.3.3 colorama==0.3.3
decorator==4.0.2
docopt==0.6.2
faketime==0.9.6.3 faketime==0.9.6.3
hitchcron==0.2 hitchcron==0.2
hitchpostgres==0.6.3 hitchpostgres==0.6.3
hitchpython==0.3.5 hitchpython==0.3.6
hitchredis==0.4.3 hitchredis==0.4.3
hitchselenium==0.4.1 hitchselenium==0.4.3
hitchserve==0.4.4 hitchserve==0.4.5
hitchsmtp==0.2.1 hitchsmtp==0.2.1
hitchtest==0.8.0 hitchtest==0.8.0
humanize==0.5.1 humanize==0.5.1
ipykernel==4.0.3
ipython==4.0.0 ipython==4.0.0
ipython-genutils==0.1.0
Jinja2==2.8 Jinja2==2.8
jupyter-client==4.0.0
jupyter-console==4.0.2
jupyter-core==4.0.6
MarkupSafe==0.23 MarkupSafe==0.23
path.py==8.1.1
patool==1.8 patool==1.8
pexpect==3.3
pickleshare==0.5
psutil==3.2.1 psutil==3.2.1
pykwalify==1.4.1
python-build==0.2.3 python-build==0.2.3
python-dateutil==2.4.2
pyuv==1.2.0 pyuv==1.2.0
PyYAML==3.11 PyYAML==3.11
pyzmq==14.7.0
requests==2.7.0 requests==2.7.0
selenium==2.47.3 selenium==2.47.3
simplegeneric==0.8.1
six==1.9.0 six==1.9.0
tblib==1.1.0 tblib==1.1.0
tornado==4.2.1 tornado==4.2.1
traitlets==4.0.0
unixpackage==0.3
xeger==0.3 xeger==0.3

View File

@ -1,6 +1,6 @@
postgres_version: 9.3.9 postgres_version: 9.3.9
redis_version: 2.8.4 redis_version: 2.8.4
django_version: 1.8.3 django_version: 1.8.4
celery_version: 3.1.18 celery_version: 3.1.18
pause_on_success: false pause_on_success: false
pause_on_failure: true pause_on_failure: true
@ -18,26 +18,11 @@ environment:
- approved_platforms: - approved_platforms:
- linux - linux
- darwin - darwin
- freeports: - packages:
- 1025
- 8000
- 15432
- 16379
- brew:
- libtool
- automake
- node
- debs:
- python-setuptools
- python3-dev
- python-virtualenv
- python-pip
- firefox - firefox
- automake - automake
- libtool - libtool
- libreadline6
- libreadline6-dev - libreadline6-dev
- libreadline-dev
- libsqlite3-dev - libsqlite3-dev
- libpq-dev - libpq-dev
- libxml2 - libxml2
@ -55,5 +40,3 @@ environment:
- libwebp-dev - libwebp-dev
- zlib1g-dev - zlib1g-dev
- gettext - gettext
- python-dev
- build-essential

View File

@ -1,10 +1,4 @@
{% raw %}{% extends "base.yml" %} - name: Stub
{% block test %}
- engine: engine.py:ExecutionEngine
name: Stub {{ python_version }}
preconditions:
python_version: "{{ python_version }}"
scenario: scenario:
- Load website - Load website
- Pause - Pause
{% endblock %}{% endraw %}