Browse Source

Merge "Use FakePolicyEnforcer for deserialization tests"

changes/82/694782/1
Zuul 2 weeks ago
parent
commit
675a183486
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      glance/tests/unit/v2/test_tasks_resource.py

+ 3
- 1
glance/tests/unit/v2/test_tasks_resource.py View File

@@ -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…
Cancel
Save