mirror of
https://github.com/robmcmullen/atrcopy.git
synced 2024-11-29 11:51:14 +00:00
Fixed comment test for change in get_comment_restore_data return value
This commit is contained in:
parent
7936abab3b
commit
a739b19cf2
@ -289,7 +289,7 @@ class TestComments(object):
|
|||||||
for start, end, style, items in r0:
|
for start, end, style, items in r0:
|
||||||
print style
|
print style
|
||||||
assert np.all(style == 0)
|
assert np.all(style == 0)
|
||||||
for rawindex, comment in items:
|
for rawindex, comment in items.values():
|
||||||
assert not comment
|
assert not comment
|
||||||
s1.restore_comments(r)
|
s1.restore_comments(r)
|
||||||
r1 = s1.get_comment_restore_data([indexes])
|
r1 = s1.get_comment_restore_data([indexes])
|
||||||
@ -317,7 +317,7 @@ class TestComments(object):
|
|||||||
for start, end, style, items in r0:
|
for start, end, style, items in r0:
|
||||||
print style
|
print style
|
||||||
assert np.all(style == 0)
|
assert np.all(style == 0)
|
||||||
for rawindex, comment in items:
|
for rawindex, comment in items.values():
|
||||||
assert not comment
|
assert not comment
|
||||||
s2.restore_comments(r)
|
s2.restore_comments(r)
|
||||||
r2 = s2.get_comment_restore_data([indexes])
|
r2 = s2.get_comment_restore_data([indexes])
|
||||||
@ -337,7 +337,7 @@ class TestComments(object):
|
|||||||
print item2
|
print item2
|
||||||
# indexes won't be the same, but rawindexes and comments will
|
# indexes won't be the same, but rawindexes and comments will
|
||||||
assert np.all(item1[2] - item2[2] == 0)
|
assert np.all(item1[2] - item2[2] == 0)
|
||||||
assert item1[3] == item2[3]
|
assert set(item1[3].values()) == set(item2[3].values())
|
||||||
|
|
||||||
|
|
||||||
class TestResize(object):
|
class TestResize(object):
|
||||||
|
Loading…
Reference in New Issue
Block a user