浏览代码

[hive] TestHive.test_install_examples need to access to beeswax (#1176)

Sungpeo Kook 5 年之前
父节点
当前提交
7d8210b6ea
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      apps/beeswax/src/beeswax/tests.py

+ 1 - 0
apps/beeswax/src/beeswax/tests.py

@@ -158,6 +158,7 @@ INFO  : OK"""
 
 
   def test_install_examples(self):
   def test_install_examples(self):
     with patch('beeswax.management.commands.beeswax_install_examples.Command') as Command:
     with patch('beeswax.management.commands.beeswax_install_examples.Command') as Command:
+      grant_access("test_hive", "default", "beeswax")
       resp = self.client.get('/beeswax/install_examples')
       resp = self.client.get('/beeswax/install_examples')
       assert_true('POST request is required.' in json.loads(resp.content)['message'])
       assert_true('POST request is required.' in json.loads(resp.content)['message'])