瀏覽代碼

Merge "Use FakePolicyEnforcer for deserialization tests"

tags/20.0.0.0b1
Zuul 2 月之前
父節點
當前提交
675a183486
共有 1 個文件被更改,包括 3 次插入1 次删除
  1. +3
    -1
      glance/tests/unit/v2/test_tasks_resource.py

+ 3
- 1
glance/tests/unit/v2/test_tasks_resource.py 查看文件

@@ -569,7 +569,9 @@ class TestTasksDeserializer(test_utils.BaseTestCase):

def setUp(self):
super(TestTasksDeserializer, self).setUp()
self.deserializer = glance.api.v2.tasks.RequestDeserializer()
self.policy = unit_test_utils.FakePolicyEnforcer()
self.deserializer = glance.api.v2.tasks.RequestDeserializer(
policy_engine=self.policy)

def test_create_no_body(self):
request = unit_test_utils.get_fake_request()

Loading…
取消
儲存