mirror of
https://github.com/TrentSPalmer/hugo_themes_report.git
synced 2024-12-04 08:41:29 -08:00
fix desc for Agnes in test/test_showing_columns.py
This commit is contained in:
parent
3112ead109
commit
45099f8405
@ -1,3 +1,4 @@
|
||||
import re
|
||||
from test.test_selenium import TestSelenium
|
||||
from unittest import TestCase
|
||||
from bs4 import BeautifulSoup as Bs
|
||||
@ -67,6 +68,12 @@ class TestShowingColumns(TestSelenium, TestCase):
|
||||
|
||||
desc = '' if self.themes[i].desc is None else self.themes[i].desc
|
||||
|
||||
if self.themes[i].cname == "Agnes":
|
||||
# remove closing html tag in desc
|
||||
desc = re.sub(r'</.*>', '', desc)
|
||||
# remove opening html tag in desc
|
||||
desc = re.sub(r'<.*>', '', desc)
|
||||
|
||||
self.assertEqual(
|
||||
tds_txt,
|
||||
[self.themes[i].cname, min_ver, license, desc, tags, features],
|
||||
|
Loading…
Reference in New Issue
Block a user