Skip to content

Commit

Permalink
Separate requirements-test from requirements-dev
Browse files Browse the repository at this point in the history
Tests should be ran with minimum set of extra requirements installed to
make the tests more realistic.
  • Loading branch information
suutari-ai committed Jan 26, 2018
1 parent 8af98ed commit 0e43f54
Show file tree
Hide file tree
Showing 5 changed files with 38 additions and 30 deletions.
3 changes: 2 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ addons:
packages:
- postgresql-9.6-postgis-2.3

install: 'pip install codecov -r requirements.txt -r requirements-dev.txt'
install:
- pip install codecov -r requirements.txt -r requirements-test.txt

before_script:
- psql -c 'create database parkkihubi;' -U postgres
Expand Down
10 changes: 0 additions & 10 deletions requirements-dev.in
Original file line number Diff line number Diff line change
@@ -1,17 +1,7 @@
autoflake
autopep8
django-extensions
flake8
freezegun
ipython
isort
pydocstyle
pytest
pytest-cov
pytest-django
pytest-factoryboy
werkzeug

# Factory Boy 2.9.0 to 2.9.2 don't seem to work. See
# https://github.com/pytest-dev/pytest-factoryboy/issues/47
factory-boy!=2.9.0,!=2.9.1,!=2.9.2
22 changes: 3 additions & 19 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,42 +2,26 @@
#
# prequ update
#
attrs==17.4.0 # via pytest
autoflake==1.1
autopep8==1.3.4
coverage==4.4.2 # via pytest-cov
decorator==4.2.1 # via ipython, traitlets
django-extensions==1.9.9
factory-boy==2.8.1
faker==0.8.10 # via factory-boy
flake8==3.5.0
freezegun==0.3.9
inflection==0.3.1 # via pytest-factoryboy
ipython==6.2.1
ipython-genutils==0.2.0 # via traitlets
isort==4.2.15
jedi==0.11.1 # via ipython
mccabe==0.6.1 # via flake8
parso==0.1.1 # via jedi
pexpect==4.3.1 # via ipython
pickleshare==0.7.4 # via ipython
pluggy==0.6.0 # via pytest
prompt-toolkit==1.0.15 # via ipython
ptyprocess==0.5.2 # via pexpect
py==1.5.2 # via pytest
pycodestyle==2.3.1 # via autopep8, flake8
pycodestyle==2.3.1 # via autopep8
pydocstyle==2.1.1
pyflakes==1.6.0 # via autoflake, flake8
pyflakes==1.6.0 # via autoflake
pygments==2.2.0 # via ipython
pytest==3.3.2
pytest-cov==2.5.1
pytest-django==3.1.2
pytest-factoryboy==1.3.1
python-dateutil==2.6.1 # via faker, freezegun
simplegeneric==0.8.1 # via ipython
six==1.11.0 # via django-extensions, faker, freezegun, prompt-toolkit, pydocstyle, pytest, python-dateutil, traitlets
six==1.11.0 # via django-extensions, prompt-toolkit, pydocstyle, traitlets
snowballstemmer==1.2.1 # via pydocstyle
text-unidecode==1.1 # via faker
traitlets==4.3.2 # via ipython
typing==3.6.4 # via django-extensions, ipython
wcwidth==0.1.7 # via prompt-toolkit
Expand Down
10 changes: 10 additions & 0 deletions requirements-test.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
flake8
freezegun
pytest
pytest-cov
pytest-django
pytest-factoryboy

# Factory Boy 2.9.0 to 2.9.2 don't seem to work. See
# https://github.com/pytest-dev/pytest-factoryboy/issues/47
factory-boy!=2.9.0,!=2.9.1,!=2.9.2
23 changes: 23 additions & 0 deletions requirements-test.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# This file is autogenerated by Prequ. To update, run:
#
# prequ update
#
attrs==17.4.0 # via pytest
coverage==4.4.2 # via pytest-cov
factory-boy==2.8.1
faker==0.8.10 # via factory-boy
flake8==3.5.0
freezegun==0.3.9
inflection==0.3.1 # via pytest-factoryboy
mccabe==0.6.1 # via flake8
pluggy==0.6.0 # via pytest
py==1.5.2 # via pytest
pycodestyle==2.3.1 # via flake8
pyflakes==1.6.0 # via flake8
pytest==3.3.2
pytest-cov==2.5.1
pytest-django==3.1.2
pytest-factoryboy==1.3.1
python-dateutil==2.6.1 # via faker, freezegun
six==1.11.0 # via faker, freezegun, pytest, python-dateutil
text-unidecode==1.1 # via faker

0 comments on commit 0e43f54

Please sign in to comment.