Skip to content

Commit

Permalink
Skip row test on Datasette <1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
simonw committed Sep 4, 2024
1 parent d3115d8 commit f0aae0d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/test_write.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from bs4 import BeautifulSoup as Soup
import datasette
from datasette.app import Datasette
from datasette_write import parse_create_alter_drop_sql
import pytest
Expand Down Expand Up @@ -251,6 +252,11 @@ async def test_title(ds, scenario):


@pytest.mark.asyncio
# Skip if Datasette < ('1', '0a15')
@pytest.mark.skipif(
datasette.__version_info__ < ("1", "0"),
reason="Datasette < 1.0 does not support this hook",
)
@pytest.mark.parametrize(
"path,expected",
[
Expand Down

0 comments on commit f0aae0d

Please sign in to comment.