mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
Fix BeautifulSoup deprecation warnings in tests
Fixes findNext → find_next and nextSibling → next_sibling
Refs 9becb04e
This commit is contained in:
parent
9becb04e1b
commit
f626983fdb
2 changed files with 2 additions and 2 deletions
|
|
@ -1032,7 +1032,7 @@ def test_column_metadata(app_client):
|
|||
response = app_client.get("/fixtures/roadside_attractions")
|
||||
soup = Soup(response.body, "html.parser")
|
||||
dl = soup.find("dl")
|
||||
assert [(dt.text, dt.nextSibling.text) for dt in dl.find_all("dt")] == [
|
||||
assert [(dt.text, dt.next_sibling.text) for dt in dl.find_all("dt")] == [
|
||||
("name", "The name of the attraction"),
|
||||
("address", "The street address for the attraction"),
|
||||
]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue