Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
wangsen
MinerU
Commits
9fbaee9e
Unverified
Commit
9fbaee9e
authored
Apr 23, 2025
by
Xiaomeng Zhao
Committed by
GitHub
Apr 23, 2025
Browse files
Merge pull request #2353 from myhloli/dev
test(table): update test_rapidtable.py to handle SegLink text variations
parents
5c232f05
61fa95d4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
tests/unittest/test_table/test_rapidtable.py
tests/unittest/test_table/test_rapidtable.py
+1
-1
No files found.
tests/unittest/test_table/test_rapidtable.py
View file @
9fbaee9e
...
@@ -41,7 +41,7 @@ class TestppTableModel(unittest.TestCase):
...
@@ -41,7 +41,7 @@ class TestppTableModel(unittest.TestCase):
# 检查第一行数据
# 检查第一行数据
first_row
=
tree
.
xpath
(
'//table/tr[2]/td'
)
first_row
=
tree
.
xpath
(
'//table/tr[2]/td'
)
assert
len
(
first_row
)
==
5
,
"First row should have 5 cells"
assert
len
(
first_row
)
==
5
,
"First row should have 5 cells"
assert
first_row
[
0
].
text
and
first_row
[
0
].
text
.
strip
()
==
"SegLink[26]"
,
"First cell should be 'SegLink[26]'"
assert
first_row
[
0
].
text
and
'SegLink'
in
first_row
[
0
].
text
.
strip
(),
"First cell should be 'SegLink
[26]'"
assert
first_row
[
1
].
text
and
first_row
[
1
].
text
.
strip
()
==
"70.0"
,
"Second cell should be '70.0'"
assert
first_row
[
1
].
text
and
first_row
[
1
].
text
.
strip
()
==
"70.0"
,
"Second cell should be '70.0'"
assert
first_row
[
2
].
text
and
first_row
[
2
].
text
.
strip
()
==
"86.0"
,
"Third cell should be '86.0'"
assert
first_row
[
2
].
text
and
first_row
[
2
].
text
.
strip
()
==
"86.0"
,
"Third cell should be '86.0'"
assert
first_row
[
3
].
text
and
first_row
[
3
].
text
.
strip
()
==
"77.0"
,
"Fourth cell should be '77.0'"
assert
first_row
[
3
].
text
and
first_row
[
3
].
text
.
strip
()
==
"77.0"
,
"Fourth cell should be '77.0'"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment