aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/lib/test_bsie.py2
-rw-r--r--test/tools/test_pipeline.py5
2 files changed, 3 insertions, 4 deletions
diff --git a/test/lib/test_bsie.py b/test/lib/test_bsie.py
index 6720746..43e7b1d 100644
--- a/test/lib/test_bsie.py
+++ b/test/lib/test_bsie.py
@@ -40,7 +40,7 @@ class TestBSIE(unittest.TestCase):
)},
])
# build pipeline
- self.prefix = URI('http://example.com/local/file#')
+ self.prefix = bsfs.Namespace('http://example.com/local/file#')
pbuild = builder.PipelineBuilder(self.prefix, rbuild, ebuild)
self.pipeline = pbuild.build()
diff --git a/test/tools/test_pipeline.py b/test/tools/test_pipeline.py
index 611f8b0..e440ab5 100644
--- a/test/tools/test_pipeline.py
+++ b/test/tools/test_pipeline.py
@@ -11,7 +11,6 @@ import unittest
# bsie imports
from bsie.base import errors
-from bsie.utils.bsfs import URI
from bsie.utils import bsfs, node, ns
import bsie.extractor.generic.constant
import bsie.extractor.generic.path
@@ -50,7 +49,7 @@ class TestPipeline(unittest.TestCase):
bsie.extractor.generic.constant.Constant(csA, tupA): None,
bsie.extractor.generic.constant.Constant(csB, tupB): None,
}
- self.prefix = URI('http://example.com/local/file#')
+ self.prefix = bsfs.Namespace('http://example.com/local/')
def test_essentials(self):
pipeline = Pipeline(self.prefix, self.ext2rdr)
@@ -101,7 +100,7 @@ class TestPipeline(unittest.TestCase):
p_filesize = pipeline.schema.predicate(ns.bse.filesize)
p_author = pipeline.schema.predicate(ns.bse.author)
p_rating = pipeline.schema.predicate(ns.bse.rating)
- entity = pipeline.schema.node(ns.bsfs.Entity)
+ entity = pipeline.schema.node(ns.bsfs.File)
p_invalid = pipeline.schema.predicate(ns.bsfs.Predicate).get_child(ns.bse.foo, range=entity)
# extract given predicates