Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ sword2.egg-info/
*.py~
*.conf

.tox
.coverage
htmlcov/

Expand Down
14 changes: 10 additions & 4 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,17 @@
"Intended Audience :: Developers",
"Intended Audience :: Information Technology",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: Apache Software License",
"Natural Language :: English",
"License :: OSI Approved :: Apache Software License",
"Natural Language :: English",
"Operating System :: OS Independent",
"Programming Language :: Python :: 2 :: Only",
"Topic :: Communications",
"Programming Language :: Python :: 2",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Topic :: Communications",
"Topic :: Internet",
"Topic :: Internet :: WWW/HTTP",
"Topic :: Software Development :: Libraries :: Python Modules",
Expand Down
2 changes: 1 addition & 1 deletion tests/databank/test_databank.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import uuid
from . import TestController
from sword2 import Connection, Entry, Error_Document, Atom_Sword_Statement, Ore_Sword_Statement
from sword2.compatible_libs import etree
from lxml import etree

PACKAGE = "tests/databank/example.zip"
PACKAGE_MIME = "application/zip"
Expand Down
3 changes: 2 additions & 1 deletion tests/functional/test_connection.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import json

from . import TestController

from sword2 import Connection
from sword2.compatible_libs import json

long_service_doc = '''<?xml version="1.0" ?>
<service xmlns:dcterms="http://purl.org/dc/terms/"
Expand Down
3 changes: 2 additions & 1 deletion tests/functional/test_service_document.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import json

from . import TestController

from sword2 import SDCollection, ServiceDocument
from sword2.compatible_libs import json

class TestSDCollection(TestController):
def test_01_blank_init(self):
Expand Down
3 changes: 2 additions & 1 deletion tests/http/test_sss.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import json

from . import TestController

from sword2 import Connection, Entry
from sword2.exceptions import PackagingFormatNotAvailable
from sword2.compatible_libs import json

#SSS_PY_URL="http://sword-app.svn.sourceforge.net/viewvc/sword-app/sss/trunk/sss.py?revision=HEAD"
SSS_PY_URL="https://raw.githubusercontent.com/OA-DeepGreen/Simple-Sword-Server/master/sss/sss-1.0.py"
Expand Down
3 changes: 2 additions & 1 deletion tests/pylons/test_pylons.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
from lxml import etree

from . import TestController
from sword2 import Connection, Entry, Error_Document, Atom_Sword_Statement, Ore_Sword_Statement
from sword2.compatible_libs import etree

PACKAGE = "tests/spec/example.zip"
PACKAGE_MIME = "application/zip"
Expand Down
3 changes: 2 additions & 1 deletion tests/spec/test_spec.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
from lxml import etree

from . import TestController
from sword2 import Connection, Entry, Error_Document, Atom_Sword_Statement, Ore_Sword_Statement
from sword2.compatible_libs import etree

PACKAGE = "tests/spec/example.zip"
PACKAGE_MIME = "application/zip"
Expand Down
3 changes: 2 additions & 1 deletion tests/urllib2tests/test_urllib2.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
from lxml import etree

from . import TestController
from sword2 import Connection, Entry, Error_Document, Atom_Sword_Statement, Ore_Sword_Statement, UrlLib2Layer
from sword2.compatible_libs import etree

PACKAGE = "tests/spec/example.zip"
PACKAGE_MIME = "application/zip"
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[tox]
envlist = py37, py38, py39
envlist = py{36,37,38,39}
[testenv]
deps=httplib2
lxml
Expand Down