summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoss Brattain <ross.b.brattain@intel.com>2017-01-24 17:12:16 -0800
committerRoss Brattain <ross.b.brattain@intel.com>2017-02-08 06:51:17 +0000
commit39347638ad31207d62bd2b3edbbe9d409b847eeb (patch)
tree530c26f23ef26d31012e4a6686a4153d996e531d
parenta4241e6e9b121447a50fdfe0d79b322c2e2aaea9 (diff)
test_env_action: use dict literal
use literal forms when possible Change-Id: I2d815f40007aa2259f3f3bcb2b9cd84a11027422 Signed-off-by: Ross Brattain <ross.b.brattain@intel.com>
-rw-r--r--tests/unit/apiserver/resources/test_env_action.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/unit/apiserver/resources/test_env_action.py b/tests/unit/apiserver/resources/test_env_action.py
index e8f99b706..0411a66c4 100644
--- a/tests/unit/apiserver/resources/test_env_action.py
+++ b/tests/unit/apiserver/resources/test_env_action.py
@@ -10,7 +10,7 @@ class EnvTestCase(APITestCase):
def test_create_grafana(self):
url = 'yardstick/env/action'
- data = dict(action='createGrafanaContainer')
+ data = {'action': 'createGrafanaContainer'}
resp = self._post(url, data)
time.sleep(1)