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
Commits
10561098
Commit
10561098
authored
4 months ago
by
I. Nüske
Browse files
Options
Downloads
Patches
Plain Diff
TST: test_read_xlsx..test_error_table now fails if boolean is not parsed correctly
parent
92644ba4
No related branches found
Branches containing commit
No related tags found
Tags containing commit
2 merge requests
!128
MNT: Added a warning when column metadata is not configured, and a better...
,
!123
Parse binary or formula boolean values
Pipeline
#58048
passed
4 months ago
Stage: setup
Stage: cert
Stage: style
Stage: unittest
Stage: integrationtest
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
unittests/table_json_conversion/test_read_xlsx.py
+1
-6
1 addition, 6 deletions
unittests/table_json_conversion/test_read_xlsx.py
with
1 addition
and
6 deletions
unittests/table_json_conversion/test_read_xlsx.py
+
1
−
6
View file @
10561098
...
@@ -143,12 +143,7 @@ def test_error_table():
...
@@ -143,12 +143,7 @@ def test_error_table():
assert
str
(
caught
.
value
).
count
(
"
Malformed metadata: Cannot parse paths in worksheet
"
)
==
1
assert
str
(
caught
.
value
).
count
(
"
Malformed metadata: Cannot parse paths in worksheet
"
)
==
1
assert
str
(
caught
.
value
).
count
(
"
There is no entry in the schema
"
)
==
1
assert
str
(
caught
.
value
).
count
(
"
There is no entry in the schema
"
)
==
1
assert
str
(
caught
.
value
).
count
(
"
is not one of
"
)
==
1
assert
str
(
caught
.
value
).
count
(
"
is not one of
"
)
==
1
# FIXME ToDo: Remove when boolean is fixed / when everything works as
assert
str
(
caught
.
value
).
count
(
"
is not of type
"
)
==
4
# expected, set correct number.
if
"
is not of type
'
boolean
'"
in
str
(
caught
.
value
):
assert
str
(
caught
.
value
).
count
(
"
is not of type
"
)
==
6
else
:
assert
str
(
caught
.
value
).
count
(
"
is not of type
"
)
==
4
# Check correct error message for completely unknown path
# Check correct error message for completely unknown path
with
pytest
.
raises
(
jsonschema
.
ValidationError
)
as
caught
:
with
pytest
.
raises
(
jsonschema
.
ValidationError
)
as
caught
:
convert
.
to_dict
(
xlsx
=
rfp
(
"
data/simple_data_broken_paths.xlsx
"
),
convert
.
to_dict
(
xlsx
=
rfp
(
"
data/simple_data_broken_paths.xlsx
"
),
...
...
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