Skip to content

Commit a43e31c

Browse files
committed
Switch to running tests using pytest
1 parent b03777a commit a43e31c

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

requirements.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,6 @@ pip-prometheus>=1.2.1
66
mock
77
mysqlclient
88
psycopg2
9+
pytest<5.0
10+
pytest-django
911
python-memcached

setup.cfg

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
[aliases]
2+
test=pytest
3+
4+
[tool:pytest]
5+
addopts = --ignore django_prometheus/tests/end2end

setup.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@
2222
packages=find_packages(),
2323
test_suite="django_prometheus.tests",
2424
long_description=LONG_DESCRIPTION,
25+
tests_require=['pytest', 'pytest-django'],
26+
setup_requires=["pytest-runner"],
2527
install_requires=[
2628
"prometheus-client>=0.7",
2729
],

0 commit comments

Comments
 (0)