summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorAbanoub Ghadban <abanoub.gdb@gmail.com>2021-08-09 15:29:02 +0200
committerAbanoub Ghadban <abanoub.gdb@gmail.com>2021-08-10 11:51:15 +0200
commit4b715bb104ceb413600cd3bffbcce90a94d5294a (patch)
treea20fcf2f4db4e775a6bc41a2faeb818249532eee /tests
parent53fba642371bf10e58c61bf47de201086a977593 (diff)
downloadtracker-4b715bb104ceb413600cd3bffbcce90a94d5294a.tar.gz
ontology-changes.py: prevent some tests from being skipped
There were some tests that were skipped in ontology-changes.py file (most likely because tracker was not support them when they are written). The @ut.skip notation is removed from the tests that are supported by tracker now.
Diffstat (limited to 'tests')
-rw-r--r--tests/functional-tests/ontology-changes.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/tests/functional-tests/ontology-changes.py b/tests/functional-tests/ontology-changes.py
index 22cf767ac..9233284c6 100644
--- a/tests/functional-tests/ontology-changes.py
+++ b/tests/functional-tests/ontology-changes.py
@@ -240,7 +240,7 @@ class PropertyRangeIntToString (OntologyChangeTestTemplate):
"""
Change the range of a property from int to string. There shouldn't be any data loss.
"""
- @ut.skip("Fails with: Unable to insert multiple values for subject `http://example.org/ns#a_int' and single valued property `rdfs:comment' (old_value: 'This property is integer in basic here is string', new value: 'Property to test the changes string/int')")
+
def test_property_range_int_to_str(self):
self.template_test_ontology_change()
@@ -269,7 +269,6 @@ class PropertyRangeStringToInt (OntologyChangeTestTemplate):
Change the range of a property from string to int. There shouldn't be any data loss.
"""
- @ut.skip("Fails with: Unable to insert multiple values for subject `http://example.org/ns#a_int' and single valued property `rdfs:comment' (old_value: 'Property to test the changes string/int', new value: 'This property is integer in basic here is string')")
def test_property_range_str_to_int(self):
self.template_test_ontology_change()
@@ -573,7 +572,7 @@ class OntologyAddPropertyTest (OntologyChangeTestTemplate):
"""
Add new properties in the ontology, with/without super prop and different ranges and cardinalities
"""
- @ut.skip("Fails with:Unable to insert multiple values for subject `http://example.org/ns#a_int' and single valued property `rdfs:comment' (old_value: 'This property is integer in basic here is string', new value: 'Property to test the changes string/int')")
+
def test_ontology_add_property(self):
self.template_test_ontology_change()
@@ -668,7 +667,7 @@ class DomainIndexAddTest (OntologyChangeTestTemplate):
"""
Add nrl:domainIndex to a class and check there is no data loss.
"""
- @ut.skip("Fails with: basic-future/91-test.ontology: Unsupported ontology change for test:b_property: can't change rdfs:domain (old=test:A, attempted new=test:B) ")
+
def test_domain_index_add(self):
self.template_test_ontology_change()