Skip to content

Commit 34ad727

Browse files
committed
Fixed #586 - Fixed failing test due to doc format updated
Signed-off-by: Chin Yeung Li <[email protected]>
1 parent 3e9d698 commit 34ad727

File tree

2 files changed

+14
-12
lines changed

2 files changed

+14
-12
lines changed

tests/test_attrib.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,9 +140,9 @@ def test_lic_key_name_sync(self):
140140
abouts, is_about_input, license_dict, output_file, template_loc=template_loc)
141141

142142
with open(output_file) as of:
143-
f1 = '\n'.join(of.readlines(False))
143+
f1 = [line.strip() for line in of if line.strip()]
144144
with open(expected) as ef:
145-
f2 = '\n'.join(ef.readlines(False))
145+
f2 = [line.strip() for line in ef if line.strip()]
146146

147147
assert f1 == f2
148148

tests/testdata/test_attrib/gen_license_key_name_check/expected/expected.html

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -10,20 +10,22 @@
1010
</head>
1111

1212

13-
13+
1414
<div class="oss-component" id="component_0">
15-
15+
1616
<h2>Apache-2.0</h2>
17-
18-
<pre>This is Apache</pre>
19-
17+
18+
<pre>This is Apache
19+
</pre>
20+
2021
<h2>LGPL-3.0-or-later</h2>
21-
22-
<pre>This is LGPL</pre>
23-
24-
22+
23+
<pre>This is LGPL
24+
</pre>
25+
26+
2527
</div>
26-
28+
2729

2830
<hr/>
2931

0 commit comments

Comments
 (0)