Skip to content

Commit

Permalink
tests
Browse files Browse the repository at this point in the history
  • Loading branch information
nl0 committed Dec 19, 2024
1 parent 7ff0ae6 commit 59c91c1
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions api/python/tests/test_admin_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -423,3 +423,20 @@ def test_tabulator_rename(data, result):
admin.tabulator.rename_table("test", "table", "new_table")
else:
assert admin.tabulator.rename_table("test", "table", "new_table") == result


def test_tabulator_get_open_query():
with mock_client(
_make_nested_dict("admin.tabulator_open_query", True),
"tabulatorGetOpenQuery",
):
assert admin.tabulator.get_open_query() == True


def test_tabulator_set_open_query():
with mock_client(
_make_nested_dict("admin.set_tabulator_open_query.tabulator_open_query", True),
"tabulatorSetOpenQuery",
variables={"enabled": True},
):
assert admin.tabulator.set_open_query(True) == None

0 comments on commit 59c91c1

Please sign in to comment.