Commit a1b6117a authored by Fabien Amarger's avatar Fabien Amarger
Browse files

fix(test): Use the new prefix to fix tests

parent cad3776aa71f
Pipeline #96002 passed with stages
in 2 minutes and 1 second
from yams.buildobjs import *
class FirstClass(EntityType):
toto = Int()
class LoutreFrFirstClass(EntityType):
loutre_fr_toto = Int()
from yams.buildobjs import *
class FirstClass(EntityType):
toto = String()
class LoutreFrFirstClass(EntityType):
loutre_fr_toto = String()
......@@ -5,4 +5,4 @@
class SecondClass(EntityType):
toto = String()
class LoutreFrSecondClass(EntityType):
loutre_fr_toto = String()
from yams.buildobjs import *
class FirstClass(EntityType):
class LoutreFrFirstClass(EntityType):
pass
from yams.buildobjs import *
class FirstClass(EntityType):
class LoutreFrFirstClass(EntityType):
pass
......@@ -4,5 +4,5 @@
pass
class SubClass(FirstClass):
class LoutreFrSubClass(LoutreFrFirstClass):
pass
from yams.buildobjs import *
from yams.buildobjs import *
class Loutre2FrPerson(EntityType):
pass
class LoutreFrPerson(EntityType):
pass
from yams.buildobjs import *
from yams.buildobjs import *
class FirstClass(EntityType):
class LoutreFrFirstClass(EntityType):
pass
......@@ -4,6 +4,6 @@
pass
class rel1(RelationDefinition):
subject = ('FirstClass',)
object = ('FirstClass',)
class loutre_fr_rel1(RelationDefinition):
subject = ('LoutreFrFirstClass',)
object = ('LoutreFrFirstClass',)
from yams.buildobjs import *
class FirstClass(EntityType):
class LoutreFrFirstClass(EntityType):
pass
......@@ -4,5 +4,5 @@
pass
class SecondClass(EntityType):
class LoutreFrSecondClass(EntityType):
pass
......@@ -7,6 +7,6 @@
pass
class rel1(RelationDefinition):
subject = ('FirstClass', 'SecondClass',)
object = ('FirstClass', 'SecondClass',)
class loutre_fr_rel1(RelationDefinition):
subject = ('LoutreFrFirstClass', 'LoutreFrSecondClass',)
object = ('LoutreFrFirstClass', 'LoutreFrSecondClass',)
from yams.buildobjs import *
class FirstClass(EntityType):
class LoutreFrFirstClass(EntityType):
pass
......@@ -4,5 +4,5 @@
pass
class SecondClass(EntityType):
class LoutreFrSecondClass(EntityType):
pass
......@@ -7,6 +7,6 @@
pass
class rel1(RelationDefinition):
subject = ('FirstClass', 'SecondClass',)
object = ('FirstClass', 'SecondClass',)
class loutre_fr_rel1(RelationDefinition):
subject = ('LoutreFrFirstClass', 'LoutreFrSecondClass',)
object = ('LoutreFrFirstClass', 'LoutreFrSecondClass',)
......@@ -112,7 +112,6 @@
)
def test_raise_multi_class(self):
with self.assertRaises(ValueError):
self._load_owl_and_yams("test_multi_class.owl")
self._load_owl_and_yams("test_multi_class.owl", "test_multi_class.yams")
def test_raise_multi_attribute(self):
......@@ -117,6 +116,5 @@
def test_raise_multi_attribute(self):
with self.assertRaises(ValueError):
self._load_owl_and_yams("test_multi_attribute.owl")
self._load_owl_and_yams("test_multi_attribute.owl", "test_multi_attribute.yams")
def test_raise_multi_relation(self):
......@@ -121,7 +119,6 @@
def test_raise_multi_relation(self):
with self.assertRaises(ValueError):
self._load_owl_and_yams("test_multi_relation.owl")
self._load_owl_and_yams("test_multi_relation.owl", "test_multi_relation.yams")
if __name__ == "__main__":
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment