Coverage for tests\test_reconcile_utils.py: 100%

5 statements  

« prev     ^ index     » next       coverage.py v7.3.1, created at 2023-12-20 00:57 +0000

1import pytest 

2 

3from datasette_reconcile.utils import ( 

4 check_config, 

5 check_permissions, 

6 get_select_fields, 

7 get_view_url, 

8) 

9 

10 

11def test_get_select_fields(): 

12 config = { 

13 "id_field": "id", 

14 "name_field": "name", 

15 "type_field": "type", 

16 "type_default": [{"id": "default", "name": "Default"}], 

17 } 

18 assert get_select_fields(config) == ["id", "name", "type"]