Skip to content

Commit b26db52

Browse files
authored
Merge pull request #145 from tisdall/update_tox
run tests on Django 2.2
2 parents b8aaa47 + 9e8795f commit b26db52

File tree

4 files changed

+6
-7
lines changed

4 files changed

+6
-7
lines changed

.travis.yml

+3
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ python:
99

1010
env:
1111
matrix:
12+
- DJANGO_VERSION=2.2
1213
- DJANGO_VERSION=2.1
1314
- DJANGO_VERSION=2.0
1415
- DJANGO_VERSION=1.11
@@ -19,6 +20,8 @@ matrix:
1920
env: DJANGO_VERSION=2.0
2021
- python: "2.7"
2122
env: DJANGO_VERSION=2.1
23+
- python: "2.7"
24+
env: DJANGO_VERSION=2.2
2225

2326
install:
2427
- pip install tox coveralls

requirements-test.txt

+1-2
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,5 @@ nose>=1.3.0
66
django-nose>=1.2
77
flake8>=2.1.0
88
restructuredtext_lint==0.12.2
9-
# We use PyMySQL because it's pure python, has no C dependencies and can emulate MySQLDb
10-
PyMySQL>=0.7.5
9+
mysqlclient>=1.3.13
1110
tox>=1.7.0

runtests.py

-4
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,6 @@
55
try:
66
from django.conf import settings
77

8-
from pymysql import install_as_MySQLdb
9-
10-
install_as_MySQLdb()
11-
128
settings.configure(
139
DEBUG=True,
1410
USE_TZ=True,

tox.ini

+2-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
envlist =
33
covclean,
44
py27-dj111,
5-
py{35,36,37}-dj{111,20,21},
5+
py{35,36,37}-dj{111,20,21,22},
66
coverage
77

88
[testenv]
@@ -13,6 +13,7 @@ deps =
1313
dj111: Django>=1.11,<2.0
1414
dj20: Django>=2.0,<2.1
1515
dj21: Django>=2.1,<2.2
16+
dj22: Django>=2.2,<2.3
1617
-r{toxinidir}/requirements-test.txt
1718

1819
[testenv:covclean]

0 commit comments

Comments
 (0)