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
31206698ad1c
Commit
31206698
authored
Nov 16, 2021
by
Fabien Amarger
Browse files
fix(test): Remove the test_cwuri because it is irrelevant
parent
fc12c44bc645
Changes
3
Hide whitespace changes
Inline
Side-by-side
test/data/test_cwuri.owl
deleted
100644 → 0
View file @
fc12c44b
test/data/test_cwuri.yams
deleted
100644 → 0
View file @
fc12c44b
from yams.buildobjs import *
class CWUri(EntityType):
cw_fragment = String()
cw_uri = String()
test/test_owl2yams.py
View file @
31206698
...
...
@@ -13,7 +13,6 @@
self
,
owl_model_file_name
:
str
,
yams_schema_file_name
:
Optional
[
str
]
=
None
,
check_cw_uri
:
bool
=
False
,
):
data_input
=
TEST_DATA
/
owl_model_file_name
owl_model
=
Graph
()
...
...
@@ -21,9 +20,6 @@
schema
=
owl_model_to_yams
(
owl_model
,
"TEST"
)
if
not
check_cw_uri
:
schema
.
del_entity_type
(
"CWUri"
)
if
yams_schema_file_name
is
not
None
:
expected_output
=
TEST_DATA
/
yams_schema_file_name
with
open
(
expected_output
)
as
f
:
...
...
@@ -73,9 +69,6 @@
with
self
.
assertRaises
(
ValueError
):
self
.
_load_owl_and_yams
(
"test_multi_relation.owl"
)
def
test_cwuri
(
self
):
self
.
_load_owl_and_yams
(
"test_cwuri.owl"
,
"test_cwuri.yams"
,
check_cw_uri
=
True
)
if
__name__
==
"__main__"
:
unittest
.
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