Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
caosdb-advanced-user-tools
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
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
caosdb
Software
caosdb-advanced-user-tools
Compare revisions
3d93f7a0289283741992acf098cb47b518d2dbd7 to 10f293f54cf22435a61308b5ff06d21358b86f7b
Compare revisions
Changes are shown as if the
source
revision was being merged into the
target
revision.
Learn more about comparing revisions.
Source
caosdb/src/caosdb-advanced-user-tools
Select target project
No results found
10f293f54cf22435a61308b5ff06d21358b86f7b
Select Git revision
Swap
Target
caosdb/src/caosdb-advanced-user-tools
Select target project
caosdb/src/caosdb-advanced-user-tools
1 result
3d93f7a0289283741992acf098cb47b518d2dbd7
Select Git revision
Show changes
Only incoming changes from source
Include changes to target since source was created
Compare
Commits on Source (2)
TEST: Integration test for issue
#55
· c8c555b2
Daniel Hornung
authored
1 year ago
c8c555b2
Merge branch 'dev' into f-simple-schema-export
· 10f293f5
Florian Spreckelsen
authored
1 year ago
10f293f5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
integrationtests/test_data_model.py
+16
-0
16 additions, 0 deletions
integrationtests/test_data_model.py
with
16 additions
and
0 deletions
integrationtests/test_data_model.py
View file @
10f293f5
import
unittest
import
pytest
import
caosdb
as
db
from
caosadvancedtools.models.data_model
import
DataModel
...
...
@@ -55,6 +56,21 @@ class DataModelTest(unittest.TestCase):
assert
len
(
exist
)
==
1
assert
exist
[
0
].
name
==
"
TestRecord
"
@pytest.mark.xfail
(
reason
=
"
Entities with many, long, properties:
"
"
https://gitlab.com/linkahead/linkahead-advanced-user-tools/-/issues/55
"
)
def
test_large_data_model
(
self
):
# create RT and one property
dm
=
DataModel
()
long
=
"
Long
"
*
50
first_RT
=
db
.
RecordType
(
name
=
f
"
TestRecord_first
"
)
for
index
in
range
(
20
):
this_RT
=
db
.
RecordType
(
name
=
f
"
TestRecord_
{
long
}
_
{
index
:
02
d
}
"
)
first_RT
.
add_property
(
this_RT
)
dm
.
append
(
this_RT
)
dm
.
append
(
first_RT
)
dm
.
sync_data_model
(
noquestion
=
True
)
# Insert
dm
.
sync_data_model
(
noquestion
=
True
)
# Check again
def
tearDown
(
self
):
try
:
tests
=
db
.
execute_query
(
"
FIND ENTITY test*
"
)
...
...
This diff is collapsed.
Click to expand it.