[tracker: 6/8] ontology-changes.py: prevent some tests from being skipped




commit 4b715bb104ceb413600cd3bffbcce90a94d5294a
Author: Abanoub Ghadban <abanoub gdb gmail com>
Date:   Mon Aug 9 15:29:02 2021 +0200

    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.

 tests/functional-tests/ontology-changes.py | 7 +++----
 1 file 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()
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]