Skip to content

Commit 2dc8b40

Browse files
committed
Updated headless export unit tests to return to passing.
1 parent 4f10df8 commit 2dc8b40

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

tests/test_headless_export.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,9 @@ def test_get_chart(input_files,
209209
with open(target_file, 'r', encoding = 'utf-8') as file_:
210210
file_contents = file_.read()
211211
contents = str(file_contents)
212-
assert contents.startswith(
212+
is_content_expected = contents.startswith(
213213
'<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"'
214-
) is True
214+
) or contents.startswith(
215+
'<svg version="1.1" class="highcharts-root"'
216+
)
217+
assert is_content_expected is True

0 commit comments

Comments
 (0)