Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
CaosDB Python Integration Tests
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
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 Python Integration Tests
Commits
7123de81
Commit
7123de81
authored
3 years ago
by
Timm Fitschen
Committed by
Florian Spreckelsen
3 years ago
Browse files
Options
Downloads
Patches
Plain Diff
TST: Add tests for white-space issues #131 and #134
parent
73465d10
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!7
Tests for multiple white space chars after `FROM`
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tests/test_issues_server.py
+24
-0
24 additions, 0 deletions
tests/test_issues_server.py
with
24 additions
and
0 deletions
tests/test_issues_server.py
+
24
−
0
View file @
7123de81
...
...
@@ -233,3 +233,27 @@ def test_issue_120():
permission
=
"
USE:AS_REFERENCE
"
)
entity
.
update
(
flags
=
{
"
ACL
"
:
None
})
assert
entity
.
messages
[
"
Warning
"
,
1104
][
0
]
==
"
User Role does not exist.
"
def
test_issue_134
():
"""
multiple white space characters after `FROM`
"""
db
.
execute_query
(
"
SELECT pname FROM ename
"
)
def
test_issue_131
():
"""
white space befor unit with strange character
"""
rt
=
db
.
RecordType
(
name
=
"
TestType
"
).
insert
()
prop
=
db
.
Property
(
name
=
"
TestProp
"
,
datatype
=
db
.
INTEGER
,
unit
=
"
€
"
).
insert
()
rec
=
db
.
Record
(
name
=
"
TestRecord
"
).
add_property
(
name
=
prop
.
name
,
value
=
101
,
unit
=
"
€
"
)
rec
.
add_parent
(
rt
)
rec
.
insert
()
result_ids
=
[
ent
.
id
for
ent
in
db
.
execute_query
(
"
FIND Entity WITH {} > 100 €
"
.
format
(
prop
.
name
))]
assert
rec
.
id
in
result_ids
result_ids
=
[
ent
.
id
for
ent
in
db
.
execute_query
(
"
FIND Entity WITH {} > 100.5 €
"
.
format
(
prop
.
name
))]
assert
rec
.
id
in
result_ids
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