Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
CaosDB Crawler
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
caosdb
Software
CaosDB Crawler
Commits
6e7a2eba
"Makefile" did not exist on "f092f5585517d32f4a13c695ac30590d80792046"
Commit
6e7a2eba
authored
2 years ago
by
Alexander Schlemmer
Browse files
Options
Downloads
Patches
Plain Diff
FIX: fixed typos in test_basic
parent
e2543b35
No related branches found
No related tags found
2 merge requests
!108
Release 0.5.0
,
!104
Create a new scanner module and move functions from crawl module there
Pipeline
#34476
passed with warnings
2 years ago
Stage: info
Stage: setup
Stage: cert
Stage: style
Stage: test
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
integrationtests/basic_example/test_basic.py
+6
-6
6 additions, 6 deletions
integrationtests/basic_example/test_basic.py
with
6 additions
and
6 deletions
integrationtests/basic_example/test_basic.py
+
6
−
6
View file @
6e7a2eba
...
...
@@ -112,7 +112,7 @@ def test_ambigious_lookup(clear_database, usemodel, crawler, ident):
proj
=
db
.
execute_query
(
"
FIND Project WITH identifier=
'
SpeedOfLight
'"
,
unique
=
True
)
with
pytest
.
raises
(
RuntimeError
,
match
=
"
.*unambigiously.*
"
):
print
(
crawler
.
identifiableAdapter
.
retrieve_identified_record_for_identifiable
(
print
(
crawler
[
0
]
.
identifiableAdapter
.
retrieve_identified_record_for_identifiable
(
Identifiable
(
properties
=
{
'
project
'
:
proj
.
id
})))
...
...
@@ -147,7 +147,7 @@ def test_single_insertion(clear_database, usemodel, crawler, ident):
def
test_multiple_insertions
(
clear_database
,
usemodel
,
ident
,
crawler
):
ins
,
ups
=
crawler
[
0
].
synchronize
([
1
])
ins
,
ups
=
crawler
[
0
].
synchronize
(
crawler
[
1
])
# Do a second run on the same data, there should be no changes:
cr
=
Crawler
(
identifiableAdapter
=
ident
)
...
...
@@ -158,7 +158,7 @@ def test_multiple_insertions(clear_database, usemodel, ident, crawler):
def
test_insertion
(
clear_database
,
usemodel
,
ident
,
crawler
):
ins
,
ups
=
crawler
[
0
].
synchronize
([
1
])
ins
,
ups
=
crawler
[
0
].
synchronize
(
crawler
[
1
])
# Do a second run on the same data, there should a new insert:
cr
=
Crawler
(
identifiableAdapter
=
ident
)
...
...
@@ -178,7 +178,7 @@ def test_insertion(clear_database, usemodel, ident, crawler):
def
test_insert_auth
(
clear_database
,
usemodel
,
ident
,
crawler
):
ins
,
ups
=
crawler
[
0
].
synchronize
([
1
])
ins
,
ups
=
crawler
[
0
].
synchronize
(
crawler
[
1
])
# Do a second run on the same data, there should a new insert:
cr
=
Crawler
(
identifiableAdapter
=
ident
,
securityMode
=
SecurityMode
.
RETRIEVE
)
...
...
@@ -200,7 +200,7 @@ def test_insert_auth(clear_database, usemodel, ident, crawler):
def
test_insertion_and_update
(
clear_database
,
usemodel
,
ident
,
crawler
):
ins
,
ups
=
crawler
[
0
].
synchronize
([
1
])
ins
,
ups
=
crawler
[
0
].
synchronize
(
crawler
[
1
])
cr
=
Crawler
(
identifiableAdapter
=
ident
)
crawled_data
,
debug_tree
=
crawl_standard_test_directory
(
cr
,
"
example_insert
"
)
...
...
@@ -217,7 +217,7 @@ def test_insertion_and_update(clear_database, usemodel, ident, crawler):
def
test_identifiable_update
(
clear_database
,
usemodel
,
ident
,
crawler
):
ins
,
ups
=
crawler
[
0
].
synchronize
([
1
])
ins
,
ups
=
crawler
[
0
].
synchronize
(
crawler
[
1
])
# Do a second run on the same data with a change in one
# of the identifiables:
...
...
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