Skip to content

Commit 91140ad

Browse files
committed
Add requirements_test.txt file for test depenendencies
1 parent 1d54e2e commit 91140ad

File tree

3 files changed

+11
-2
lines changed

3 files changed

+11
-2
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ language: python
33
python:
44
- "3.7"
55
cache: pip
6-
install: "pip install -r requirements.txt && pip install coveralls pylint pytest pytest-cov pytest-django"
6+
install: "pip install -r requirements.txt && pip install -r requirements_test.txt"
77

88
script:
99
- make collectstatic

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,14 +95,17 @@ In local\_settings.py add entries to set EMAIL\_HOST to 'localhost' and EMAIL\_P
9595

9696
# Running tests and coverage
9797

98+
Install the test dependencies:
99+
100+
pip install -r requirements_text.txt
101+
98102
To the unittests execute the following commands:
99103

100104
./manage.py collectstatic --noinput
101105
./manage.py test
102106

103107
Running coverage:
104108

105-
pip install coverage
106109
coverage run --omit='env*' --source='.' manage.py test
107110
coverage report
108111

requirements_test.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
coveralls
2+
pylint
3+
pytest
4+
pytest-cov
5+
pytest-django
6+

0 commit comments

Comments
 (0)