mirror of
https://github.com/ae-utbm/sith.git
synced 2026-10-10 21:00:28 +00:00
display club links on club main page
This commit is contained in:
1 parent
eaf90efd5c
commit
a5a31b6a4d
5 files changed
+127
-23
No files matched your search
@@ -21,7 +21,7 @@ def test_page_display_on_club_main_page(client: Client):
|
||||
|
||||
assert res.status_code == 200
|
||||
soup = BeautifulSoup(res.text, "lxml")
|
||||
detail_html = soup.find(id="club_detail").find(class_="markdown")
|
||||
detail_html = soup.find(id="club-page").find(class_="markdown")
|
||||
assertHTMLEqual(detail_html.decode_contents(), markdown(content))
|
||||
|
||||
|
||||
@@ -34,7 +34,7 @@ def test_club_main_page_without_content(client: Client):
|
||||
|
||||
assert res.status_code == 200
|
||||
soup = BeautifulSoup(res.text, "lxml")
|
||||
detail_html = soup.find(id="club_detail")
|
||||
detail_html = soup.find(id="club-page")
|
||||
assert detail_html.find_all("markdown") == []
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user