Skip to content

Commit

Permalink
commit for version 0.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
dieuska committed May 20, 2014
1 parent 68412ca commit 4a1b392
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 3 deletions.
7 changes: 7 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
0.1
---
- Initial version

0.1.1
-----
- Bugfixing:
--encoding/decoding problems
--casting rdf subjects and objects to rdflib URI's
--Added tests
7 changes: 7 additions & 0 deletions HISTORY.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
0.1.0
-----
- Initial version

0.1.1
-----
- Bugfixing:
--encoding/decoding problems
--casting rdf subjects and objects to rdflib URI's
--Added tests
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

setup(
name='skosprovider_rdf',
version='0.1',
version='0.1.1',
description='skosprovider_rdf',
long_description=README + '\n\n' + CHANGES,
package_data={'': ['LICENSE']},
Expand Down
9 changes: 7 additions & 2 deletions tests/test_utils.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
import unittest
import os
from rdflib import Graph
Expand Down Expand Up @@ -113,7 +114,9 @@ def _create_test_data(self):

def test_dump_rdf_to_rdf(self):
graph_dump = utils.rdf_dumper(self.rdf_products_provider)
xml = graph_dump.serialize(format='xml', encoding="UTF-8").decode()
xml = graph_dump.serialize(format='xml', encoding="UTF-8")
if isinstance(xml,bytes):
xml=xml.decode("UTF-8")
self.assertEquals("<?xml", xml[:5])

def test_dump_rdf_compare_type(self):
Expand All @@ -122,7 +125,9 @@ def test_dump_rdf_compare_type(self):

def test_dump_tree_to_rdf(self):
graph_dump = utils.rdf_dumper(self.tree_provider)
xml = graph_dump.serialize(format='xml', encoding="UTF-8").decode()
xml = graph_dump.serialize(format='xml', encoding="UTF-8")
if isinstance(xml,bytes):
xml=xml.decode("UTF-8")
self.assertEquals("<?xml", xml[:5])

def test_include_me(self):
Expand Down

0 comments on commit 4a1b392

Please sign in to comment.