Skip to content

Commit a55e544

Browse files
author
David Burke
committed
Update tests to work in django 1.11
1 parent 7c72b3e commit a55e544

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM python:3.5
1+
FROM python:3.6
22
ENV PYTHONUNBUFFERED 1
33

44
RUN mkdir -p /usr/src/app
@@ -7,4 +7,4 @@ WORKDIR /usr/src/app
77
COPY setup.py /usr/src/app/
88
RUN pip install -e .[ods,xlsx,xls]
99

10-
COPY . /usr/src/app
10+
COPY . /usr/src/app

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
setup(
44
name = "django-simple-import",
5-
version = "2.0.1",
5+
version = "2.0.2",
66
author = "David Burke",
77
author_email = "david@burkesoftware.com",
88
description = ("A Django import tool easy enough your users could use it"),
@@ -16,7 +16,7 @@
1616
'Environment :: Web Environment',
1717
'Framework :: Django',
1818
'Programming Language :: Python',
19-
'Programming Language :: Python :: 3.5',
19+
'Programming Language :: Python :: 3',
2020
'Intended Audience :: Developers',
2121
'Intended Audience :: System Administrators',
2222
"License :: OSI Approved :: BSD License",

simple_import/tests.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,9 +79,9 @@ def test_import(self):
7979
self.assertRedirects(response, reverse('simple_import-match_columns', kwargs={'import_log_id': ImportLog.objects.all()[1].id}))
8080
self.assertContains(response, '<h1>Match Columns</h1>')
8181
# Check matching
82-
self.assertContains(response, '<option value="name" selected="selected">')
83-
self.assertContains(response, '<option value="user" selected="selected">')
84-
self.assertContains(response, '<option value="import_file" selected="selected">')
82+
self.assertContains(response, '<option value="name" selected')
83+
self.assertContains(response, '<option value="user" selected')
84+
self.assertContains(response, '<option value="import_file" selected')
8585
self.assertContains(response, '<option value="import_setting">import setting (Required) (Related)</option>')
8686
# Check Sample Data
8787
self.assertContains(response, '/tmp/foo.xls')

0 commit comments

Comments
 (0)