Skip to content

Commit 59db54c

Browse files
authored
Merge pull request #19 from sevein/dev/py3-tests
Fix tests, add py36 to tox matrix
2 parents 38b5e65 + 1bffad8 commit 59db54c

File tree

10 files changed

+25
-12
lines changed

10 files changed

+25
-12
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ sword2.egg-info/
88
*.py~
99
*.conf
1010

11+
.tox
1112
.coverage
1213
htmlcov/
1314

setup.py

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,17 @@
1717
"Intended Audience :: Developers",
1818
"Intended Audience :: Information Technology",
1919
"Intended Audience :: Science/Research",
20-
"License :: OSI Approved :: Apache Software License",
21-
"Natural Language :: English",
20+
"License :: OSI Approved :: Apache Software License",
21+
"Natural Language :: English",
2222
"Operating System :: OS Independent",
23-
"Programming Language :: Python :: 2 :: Only",
24-
"Topic :: Communications",
23+
"Programming Language :: Python :: 2",
24+
"Programming Language :: Python :: 2.7",
25+
"Programming Language :: Python :: 3",
26+
"Programming Language :: Python :: 3.6",
27+
"Programming Language :: Python :: 3.7",
28+
"Programming Language :: Python :: 3.8",
29+
"Programming Language :: Python :: 3.9",
30+
"Topic :: Communications",
2531
"Topic :: Internet",
2632
"Topic :: Internet :: WWW/HTTP",
2733
"Topic :: Software Development :: Libraries :: Python Modules",

tests/databank/test_databank.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import uuid
22
from . import TestController
33
from sword2 import Connection, Entry, Error_Document, Atom_Sword_Statement, Ore_Sword_Statement
4-
from sword2.compatible_libs import etree
4+
from lxml import etree
55

66
PACKAGE = "tests/databank/example.zip"
77
PACKAGE_MIME = "application/zip"

tests/functional/test_connection.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1+
import json
2+
13
from . import TestController
24

35
from sword2 import Connection
4-
from sword2.compatible_libs import json
56

67
long_service_doc = '''<?xml version="1.0" ?>
78
<service xmlns:dcterms="http://purl.org/dc/terms/"

tests/functional/test_service_document.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1+
import json
2+
13
from . import TestController
24

35
from sword2 import SDCollection, ServiceDocument
4-
from sword2.compatible_libs import json
56

67
class TestSDCollection(TestController):
78
def test_01_blank_init(self):

tests/http/test_sss.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
1+
import json
2+
13
from . import TestController
24

35
from sword2 import Connection, Entry
46
from sword2.exceptions import PackagingFormatNotAvailable
5-
from sword2.compatible_libs import json
67

78
#SSS_PY_URL="http://sword-app.svn.sourceforge.net/viewvc/sword-app/sss/trunk/sss.py?revision=HEAD"
89
SSS_PY_URL="https://raw.githubusercontent.com/OA-DeepGreen/Simple-Sword-Server/master/sss/sss-1.0.py"

tests/pylons/test_pylons.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1+
from lxml import etree
2+
13
from . import TestController
24
from sword2 import Connection, Entry, Error_Document, Atom_Sword_Statement, Ore_Sword_Statement
3-
from sword2.compatible_libs import etree
45

56
PACKAGE = "tests/spec/example.zip"
67
PACKAGE_MIME = "application/zip"

tests/spec/test_spec.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1+
from lxml import etree
2+
13
from . import TestController
24
from sword2 import Connection, Entry, Error_Document, Atom_Sword_Statement, Ore_Sword_Statement
3-
from sword2.compatible_libs import etree
45

56
PACKAGE = "tests/spec/example.zip"
67
PACKAGE_MIME = "application/zip"

tests/urllib2tests/test_urllib2.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1+
from lxml import etree
2+
13
from . import TestController
24
from sword2 import Connection, Entry, Error_Document, Atom_Sword_Statement, Ore_Sword_Statement, UrlLib2Layer
3-
from sword2.compatible_libs import etree
45

56
PACKAGE = "tests/spec/example.zip"
67
PACKAGE_MIME = "application/zip"

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[tox]
2-
envlist = py37, py38, py39
2+
envlist = py{36,37,38,39}
33
[testenv]
44
deps=httplib2
55
lxml

0 commit comments

Comments
 (0)