mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
Fix some regex DeprecationWarnings (#392)
This commit is contained in:
parent
eac08f0dfc
commit
a2bfcfc1b1
2 changed files with 12 additions and 12 deletions
|
|
@ -687,7 +687,7 @@ def test_allow_download_on(app_client):
|
|||
"/fixtures"
|
||||
)
|
||||
soup = Soup(response.body, 'html.parser')
|
||||
assert len(soup.findAll('a', {'href': re.compile('\.db$')}))
|
||||
assert len(soup.findAll('a', {'href': re.compile(r'\.db$')}))
|
||||
|
||||
|
||||
def test_allow_download_off():
|
||||
|
|
@ -699,7 +699,7 @@ def test_allow_download_off():
|
|||
|
||||
)
|
||||
soup = Soup(response.body, 'html.parser')
|
||||
assert not len(soup.findAll('a', {'href': re.compile('\.db$')}))
|
||||
assert not len(soup.findAll('a', {'href': re.compile(r'\.db$')}))
|
||||
# Accessing URL directly should 403
|
||||
response = client.get(
|
||||
"/fixtures.db",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue