From 040fc0546f1ad602125ecdc27d9d013d830aa808 Mon Sep 17 00:00:00 2001 From: Simon Willison Date: Mon, 8 Jun 2020 12:02:56 -0700 Subject: [PATCH] Updated tests, refs #817 --- tests/test_permissions.py | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/tests/test_permissions.py b/tests/test_permissions.py index 475f93dd73..90ba1494f3 100644 --- a/tests/test_permissions.py +++ b/tests/test_permissions.py @@ -210,41 +210,41 @@ def test_query_list_respects_view_query(): "path,permissions", [ ("/", ["view-instance"]), - ("/fixtures", ["view-instance", ("view-database", "database", "fixtures")]), + ("/fixtures", ["view-instance", ("view-database", "fixtures")]), ( "/fixtures/facetable/1", - ["view-instance", ("view-table", "table", ("fixtures", "facetable"))], + ["view-instance", ("view-table", ("fixtures", "facetable"))], ), ( "/fixtures/simple_primary_key", [ "view-instance", - ("view-database", "database", "fixtures"), - ("view-table", "table", ("fixtures", "simple_primary_key")), + ("view-database", "fixtures"), + ("view-table", ("fixtures", "simple_primary_key")), ], ), ( "/fixtures?sql=select+1", [ "view-instance", - ("view-database", "database", "fixtures"), - ("execute-sql", "database", "fixtures"), + ("view-database", "fixtures"), + ("execute-sql", "fixtures"), ], ), ( "/fixtures.db", [ "view-instance", - ("view-database", "database", "fixtures"), - ("view-database-download", "database", "fixtures"), + ("view-database", "fixtures"), + ("view-database-download", "fixtures"), ], ), ( "/fixtures/neighborhood_search", [ "view-instance", - ("view-database", "database", "fixtures"), - ("view-query", "query", ("fixtures", "neighborhood_search")), + ("view-database", "fixtures"), + ("view-query", ("fixtures", "neighborhood_search")), ], ), ],