Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
openpyxl
openpyxl
Commits
623d716825c9
Commit
f252c815
authored
Oct 12, 2020
by
Victor Korobkovsky
Browse files
Tests for Border() that show the differences
--HG-- branch : 3.0
parent
c451f70d04a4
Pipeline
#11417
passed with stage
in 3 minutes and 11 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
openpyxl/styles/tests/test_borders.py
View file @
623d7168
...
...
@@ -35,17 +35,15 @@ class TestBorder:
<top style="thin">
<color rgb="FF006600"/>
</top>
<bottom style="thin">
<color rgb="FF006600"/>
</bottom>
<diagonal/>
<bottom/>
</border>
"""
xml
=
fromstring
(
src
)
bd
=
Border
.
from_tree
(
xml
)
assert
bd
.
left
.
style
==
"thin"
assert
bd
.
right
.
color
.
value
==
"FF006600"
assert
bd
.
diagonal
.
style
==
None
assert
bd
.
bottom
.
style
==
None
assert
bd
.
diagonal
==
None
def
test_serialise
(
self
,
Border
,
Side
):
...
...
@@ -54,7 +52,6 @@ class TestBorder:
right
=
medium_blue
,
top
=
medium_blue
,
bottom
=
medium_blue
,
diagonal
=
Side
(),
outline
=
False
,
diagonalDown
=
True
,
)
...
...
@@ -73,7 +70,6 @@ class TestBorder:
<bottom style="medium">
<color rgb="000000FF"></color>
</bottom>
<diagonal />
</border>
"""
diff
=
compare_xml
(
xml
,
expected
)
...
...
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