Skip to content

Commit

Permalink
Debugging (TODO: remove this commit)
Browse files Browse the repository at this point in the history
  • Loading branch information
aucampia committed Oct 19, 2021
1 parent 08a831e commit 1468000
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 44 deletions.
76 changes: 38 additions & 38 deletions .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,44 +33,44 @@ steps:
- coverage report --skip-covered
- coveralls

---
kind: pipeline
name: python-3-8
type: docker
platform:
os: linux
arch: amd64
# ---
# kind: pipeline
# name: python-3-8
# type: docker
# platform:
# os: linux
# arch: amd64

steps:
- name: test
image: python:3.8
commands:
- bash .travis.fuseki_install_optional.sh
- pip install --default-timeout 60 -r requirements.txt
- pip install --default-timeout 60 -r requirements.dev.txt
- python setup.py install
- black --config black.toml --check ./rdflib | true
- flake8 --exit-zero rdflib
- coverage run -m pytest
- coverage report
# steps:
# - name: test
# image: python:3.8
# commands:
# - bash .travis.fuseki_install_optional.sh
# - pip install --default-timeout 60 -r requirements.txt
# - pip install --default-timeout 60 -r requirements.dev.txt
# - python setup.py install
# - black --config black.toml --check ./rdflib | true
# - flake8 --exit-zero rdflib
# - coverage run -m pytest
# - coverage report

---
kind: pipeline
name: python-3-9
type: docker
platform:
os: linux
arch: amd64
# ---
# kind: pipeline
# name: python-3-9
# type: docker
# platform:
# os: linux
# arch: amd64

steps:
- name: test
image: python:3.9
commands:
- bash .travis.fuseki_install_optional.sh
- pip install --default-timeout 60 -r requirements.txt
- pip install --default-timeout 60 -r requirements.dev.txt
- python setup.py install
- black --config black.toml --check ./rdflib | true
- flake8 --exit-zero rdflib
- coverage run -m pytest
- coverage report
# steps:
# - name: test
# image: python:3.9
# commands:
# - bash .travis.fuseki_install_optional.sh
# - pip install --default-timeout 60 -r requirements.txt
# - pip install --default-timeout 60 -r requirements.dev.txt
# - python setup.py install
# - black --config black.toml --check ./rdflib | true
# - flake8 --exit-zero rdflib
# - coverage run -m pytest
# - coverage report
5 changes: 3 additions & 2 deletions test/jsonld/test_testsuite.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,6 @@ def read_manifest(skiptests):


def get_test_suite_cases(skip_known_bugs=True):
default_allow = rdflib.plugins.parsers.jsonld.ALLOW_LISTS_OF_LISTS
rdflib.plugins.parsers.jsonld.ALLOW_LISTS_OF_LISTS = allow_lists_of_lists
skiptests = unsupported_tests
if skip_known_bugs:
skiptests += known_bugs
Expand All @@ -100,9 +98,12 @@ def get_test_suite_cases(skip_known_bugs=True):

@pytest.fixture(scope="module", autouse=True)
def testsuide_dir():
default_allow = rdflib.plugins.parsers.jsonld.ALLOW_LISTS_OF_LISTS
rdflib.plugins.parsers.jsonld.ALLOW_LISTS_OF_LISTS = allow_lists_of_lists
old_cwd = getcwd()
chdir(test_dir)
yield
rdflib.plugins.parsers.jsonld.ALLOW_LISTS_OF_LISTS = default_allow
chdir(old_cwd)


Expand Down
10 changes: 6 additions & 4 deletions test/test_xmlliterals.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,12 @@ def testPythonRoundtrip():
assert l1.eq(l4)

rdflib.NORMALIZE_LITERALS = False
l4 = Literal("<msg >hello</msg>", datatype=RDF.XMLLiteral)
assert l1 != l4
assert l1.eq(l4)
rdflib.NORMALIZE_LITERALS = True
try:
l4 = Literal("<msg >hello</msg>", datatype=RDF.XMLLiteral)
assert l1 != l4
assert l1.eq(l4)
finally:
rdflib.NORMALIZE_LITERALS = True


def testRDFXMLParse():
Expand Down

0 comments on commit 1468000

Please sign in to comment.