Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
cubicweb
OWL2YAMS
Commits
a1b6117a1282
Commit
a1b6117a
authored
Nov 24, 2021
by
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
Changes
11
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
test/data/test_attribute.yams
View file @
a1b6117a
from yams.buildobjs import *
class FirstClass(EntityType):
toto = Int()
class
LoutreFr
FirstClass(EntityType):
loutre_fr_
toto = Int()
test/data/test_attribute_owl_thing.yams
View file @
a1b6117a
from yams.buildobjs import *
class FirstClass(EntityType):
toto = String()
class
LoutreFr
FirstClass(EntityType):
loutre_fr_
toto = String()
...
...
@@ -5,4 +5,4 @@
class SecondClass(EntityType):
toto = String()
class
LoutreFr
SecondClass(EntityType):
loutre_fr_
toto = String()
test/data/test_class.yams
View file @
a1b6117a
from yams.buildobjs import *
class FirstClass(EntityType):
class
LoutreFr
FirstClass(EntityType):
pass
test/data/test_hierarchy.yams
View file @
a1b6117a
from yams.buildobjs import *
class FirstClass(EntityType):
class
LoutreFr
FirstClass(EntityType):
pass
...
...
@@ -4,5 +4,5 @@
pass
class SubClass(FirstClass):
class
LoutreFr
SubClass(
LoutreFr
FirstClass):
pass
test/data/test_multi_attribute.yams
0 → 100644
View file @
a1b6117a
from yams.buildobjs import *
test/data/test_multi_class.yams
0 → 100644
View file @
a1b6117a
from yams.buildobjs import *
class Loutre2FrPerson(EntityType):
pass
class LoutreFrPerson(EntityType):
pass
test/data/test_multi_relation.yams
0 → 100644
View file @
a1b6117a
from yams.buildobjs import *
test/data/test_relation.yams
View file @
a1b6117a
from yams.buildobjs import *
class FirstClass(EntityType):
class
LoutreFr
FirstClass(EntityType):
pass
...
...
@@ -4,6 +4,6 @@
pass
class rel1(RelationDefinition):
subject = ('FirstClass',)
object = ('FirstClass',)
class
loutre_fr_
rel1(RelationDefinition):
subject = ('
LoutreFr
FirstClass',)
object = ('
LoutreFr
FirstClass',)
test/data/test_relation_multi_range.yams
View file @
a1b6117a
from yams.buildobjs import *
class FirstClass(EntityType):
class
LoutreFr
FirstClass(EntityType):
pass
...
...
@@ -4,5 +4,5 @@
pass
class SecondClass(EntityType):
class
LoutreFr
SecondClass(EntityType):
pass
...
...
@@ -7,6 +7,6 @@
pass
class rel1(RelationDefinition):
subject = ('FirstClass', 'SecondClass',)
object = ('FirstClass', 'SecondClass',)
class
loutre_fr_
rel1(RelationDefinition):
subject = ('
LoutreFr
FirstClass', '
LoutreFr
SecondClass',)
object = ('
LoutreFr
FirstClass', '
LoutreFr
SecondClass',)
test/data/test_relation_without_domain_range.yams
View file @
a1b6117a
from yams.buildobjs import *
class FirstClass(EntityType):
class
LoutreFr
FirstClass(EntityType):
pass
...
...
@@ -4,5 +4,5 @@
pass
class SecondClass(EntityType):
class
LoutreFr
SecondClass(EntityType):
pass
...
...
@@ -7,6 +7,6 @@
pass
class rel1(RelationDefinition):
subject = ('FirstClass', 'SecondClass',)
object = ('FirstClass', 'SecondClass',)
class
loutre_fr_
rel1(RelationDefinition):
subject = ('
LoutreFr
FirstClass', '
LoutreFr
SecondClass',)
object = ('
LoutreFr
FirstClass', '
LoutreFr
SecondClass',)
test/test_owl2yams.py
View file @
a1b6117a
...
...
@@ -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__"
:
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment