Skip to content

Commit

Permalink
[api] Fix, tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dpgaspar committed Mar 28, 2019
1 parent 12dd41e commit b0c2b07
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion flask_appbuilder/tests/test_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ class Model1ApiOrder(ModelRestApi):

class Model1ApiRestrictedPermissions(ModelRestApi):
datamodel = SQLAInterface(Model1)
base_permissions = ['can_get']
base_permissions = ['can_get', 'can_info']

class Model1ApiFiltered(ModelRestApi):
datamodel = SQLAInterface(Model1)
Expand Down Expand Up @@ -1094,6 +1094,7 @@ def test_info_permissions(self):
data = json.loads(rv.data.decode('utf-8'))
expected_permissions = [
'can_get',
'can_info'
]
eq_(sorted(data[API_PERMISSIONS_RES_KEY]), expected_permissions)

Expand Down

0 comments on commit b0c2b07

Please sign in to comment.