mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
parent
6a9fdcc071
commit
b46e370ee6
3 changed files with 32 additions and 6 deletions
|
|
@ -40,6 +40,7 @@ def test_pks_for_table(sql, table, expected_keys):
|
|||
@pytest.mark.parametrize('row,pks,expected_path', [
|
||||
({'A': 'foo', 'B': 'bar'}, ['A', 'B'], 'foo,bar'),
|
||||
({'A': 'f,o', 'B': 'bar'}, ['A', 'B'], 'f%2Co,bar'),
|
||||
({'A': 123}, ['A'], '123'),
|
||||
])
|
||||
def test_path_from_row_pks(row, pks, expected_path):
|
||||
actual_path = app.path_from_row_pks(row, pks)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue