Skip to content

Commit 2c8e2a5

Browse files
authored
Fix test after branca update (#1324)
1 parent 61c5ed0 commit 2c8e2a5

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

tests/test_repr.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,14 @@ def test__repr_html_is_str(m):
3434
def test_valid_html(m):
3535
html = m._repr_html_()
3636
parts = html.split('><')
37-
assert len(parts) == 6
37+
assert len(parts) == 7
3838
assert parts[0].lstrip('<div ') == 'style="width:100%;"'
3939
assert parts[1].lstrip('<div ') == 'style="position:relative;width:100%;height:0;padding-bottom:60%;"' # noqa
40-
assert parts[2].startswith('iframe')
41-
assert parts[3] == '/iframe'
42-
assert parts[4] == '/div'
43-
assert parts[5] == '/div>'
40+
assert 'make this notebook trusted' in parts[2].lower()
41+
assert parts[3].startswith('iframe')
42+
assert parts[4] == '/iframe'
43+
assert parts[5] == '/div'
44+
assert parts[6] == '/div>'
4445

4546

4647
def test__repr_png_no_image(m):

0 commit comments

Comments
 (0)