Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Rodolf
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
cubicweb
cubes
Rodolf
Commits
10b47e5c5572
Commit
10b47e5c5572
authored
1 year ago
by
Fabien Amarger
Browse files
Options
Downloads
Patches
Plain Diff
fix(tests): Change tests regarding the virtuoso configuration modification
parent
14e19658b3ca
No related branches found
No related tags found
1 merge request
!22
Export data into SPARQL endpoint
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
cubicweb_rodolf/entities.py
+1
-1
1 addition, 1 deletion
cubicweb_rodolf/entities.py
test/test_importprocedure.py
+4
-1
4 additions, 1 deletion
test/test_importprocedure.py
test/test_rodolf.py
+5
-2
5 additions, 2 deletions
test/test_rodolf.py
with
10 additions
and
4 deletions
cubicweb_rodolf/entities.py
+
1
−
1
View file @
10b47e5c
...
...
@@ -45,7 +45,7 @@
__regid__
=
"
ImportProcedure
"
def
dc_title
(
self
):
return
self
.
name
if
self
.
name
else
self
.
sparql_endpoint
return
self
.
name
if
self
.
name
else
self
.
virtuoso_url
@property
def
delta_import_recipes
(
self
):
...
...
This diff is collapsed.
Click to expand it.
test/test_importprocedure.py
+
4
−
1
View file @
10b47e5c
...
...
@@ -51,6 +51,7 @@
"
ImportRecipe
"
,
name
=
"
IR1
"
,
dataservice
=
[
ds1
],
process_type
=
"
default-dryrun
"
,
)
ds2
=
cnx
.
create_entity
(
"
DataService
"
,
...
...
@@ -61,6 +62,7 @@
"
ImportRecipe
"
,
name
=
"
IR2
"
,
dataservice
=
[
ds2
],
process_type
=
"
default-dryrun
"
,
)
importprocedure
=
cnx
.
create_entity
(
"
ImportProcedure
"
,
...
...
@@ -64,7 +66,8 @@
)
importprocedure
=
cnx
.
create_entity
(
"
ImportProcedure
"
,
sparql_endpoint
=
"
https://sparql.poulet
"
,
virtuoso_url
=
"
https://sparql.poulet
"
,
virtuoso_password
=
"
loutre
"
,
import_recipes
=
[
ir1
,
ir2
],
)
cnx
.
commit
()
...
...
This diff is collapsed.
Click to expand it.
test/test_rodolf.py
+
5
−
2
View file @
10b47e5c
...
...
@@ -66,6 +66,7 @@
"
ImportRecipe
"
,
name
=
"
Ma recette
"
,
dataservice
=
[
dataservice
],
process_type
=
"
default-dryrun
"
,
)
with
open
(
self
.
datapath
(
"
dboPerson.rdf
"
),
"
rb
"
)
as
fp
:
file
=
cnx
.
create_entity
(
...
...
@@ -79,7 +80,8 @@
)
importprocedure
=
cnx
.
create_entity
(
"
ImportProcedure
"
,
sparql_endpoint
=
"
https://sparql.poulet
"
,
virtuoso_url
=
"
https://sparql.poulet
"
,
virtuoso_password
=
"
loutre
"
,
import_recipes
=
[
recipe
],
ontology_file
=
file
,
)
...
...
@@ -174,4 +176,5 @@
import_process
=
task
.
reverse_rq_task
[
0
]
wf
=
import_process
.
cw_adapt_to
(
"
IWorkflowable
"
)
self
.
assertEqual
(
wf
.
state
,
"
error
"
)
self
.
assertEqual
(
wf
.
state
,
"
successful
"
)
self
.
assertEqual
(
import_process
.
shacl_valid
,
False
)
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment