summaryrefslogtreecommitdiff
path: root/unittests
diff options
context:
space:
mode:
authorDylan Baker <dylan@pnwbakers.com>2016-09-01 12:01:12 -0700
committerDylan Baker <dylan@pnwbakers.com>2016-09-09 13:32:40 -0700
commitc3a6865fe19967ce304a3c8ba3e7e6bc4edb64fe (patch)
treeca3a47597b3190660710ce8efe98779464426243 /unittests
parent6f57ca7e391e67efe716ddbe42b13932114d5899 (diff)
unittests: Fix JSON schema test to pass time_elapsed
Signed-off-by: Dylan Baker <dylanx.c.baker@intel.com>
Diffstat (limited to 'unittests')
-rw-r--r--unittests/framework/backends/test_json.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/unittests/framework/backends/test_json.py b/unittests/framework/backends/test_json.py
index e6574a629..0c49aff8c 100644
--- a/unittests/framework/backends/test_json.py
+++ b/unittests/framework/backends/test_json.py
@@ -112,7 +112,8 @@ class TestJSONBackend(object):
test.initialize(shared.INITIAL_METADATA)
with test.write_test(self.name) as t:
t(self.result)
- test.finalize()
+ test.finalize(
+ {'time_elapsed': results.TimeAttribute(start=0.0, end=1.0)})
def test_metadata_removed(self, tmpdir):
assert not tmpdir.join('metadata.json').check()