diff options
author | Jenkins <jenkins@review.openstack.org> | 2017-08-01 17:22:30 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2017-08-01 17:22:30 +0000 |
commit | 65579f1edf9f60d4faab2a74c7ad8d222823831a (patch) | |
tree | 01e21cffc3ea36cb92c4ff20d8b8d8b01b354d36 /osprofiler/tests | |
parent | 8dee13ccba03949996d961d40db8064aa6ba5b2a (diff) | |
parent | 362c4f7b19a4715810f5c6ad64a239a1f5f1cb08 (diff) | |
download | osprofiler-65579f1edf9f60d4faab2a74c7ad8d222823831a.tar.gz |
Merge "Remove unused parameters from Profiler class"
Diffstat (limited to 'osprofiler/tests')
-rw-r--r-- | osprofiler/tests/functional/test_driver.py | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/osprofiler/tests/functional/test_driver.py b/osprofiler/tests/functional/test_driver.py index 6a1b020..6b4bcb8 100644 --- a/osprofiler/tests/functional/test_driver.py +++ b/osprofiler/tests/functional/test_driver.py @@ -61,10 +61,7 @@ class DriverTestCase(test.TestCase): "project": self.PROJECT} self._assert_dict(child["info"], **exp_info) - exp_raw_info = {"project": self.PROJECT, - "service": self.SERVICE} raw_start = child["info"]["meta.raw_payload.%s-start" % name] - self._assert_dict(raw_start["info"], **exp_raw_info) self.assertEqual(fn_name, raw_start["info"]["function"]["name"]) exp_raw = {"name": "%s-start" % name, "service": self.SERVICE, @@ -74,14 +71,13 @@ class DriverTestCase(test.TestCase): self._assert_dict(raw_start, **exp_raw) raw_stop = child["info"]["meta.raw_payload.%s-stop" % name] - self._assert_dict(raw_stop["info"], **exp_raw_info) exp_raw["name"] = "%s-stop" % name self._assert_dict(raw_stop, **exp_raw) def test_get_report(self): initializer.init_from_conf( CONF, None, self.PROJECT, self.SERVICE, "host") - profiler.init("SECRET_KEY", project=self.PROJECT, service=self.SERVICE) + profiler.init("SECRET_KEY") foo = DriverTestCase.Foo() foo.bar(1) |