diff options
author | Dylan Baker <dylan@pnwbakers.com> | 2017-06-22 15:03:06 -0700 |
---|---|---|
committer | Dylan Baker <dylan@pnwbakers.com> | 2017-07-21 15:14:56 -0700 |
commit | 2794066bd71d7e64715e0dce62e79d1cb977d644 (patch) | |
tree | d302e0dd20ba0e5cd983d27a7d56facfea2df900 /unittests | |
parent | 63e56cf382acc7a3abd79dfb58c886979416ec2c (diff) |
unittests: Add tests for file in tests dir not ending in .json
This is currently expected to fail.
Signed-off-by: Dylan Baker <dylanx.c.baker@intel.com>
Diffstat (limited to 'unittests')
-rw-r--r-- | unittests/framework/backends/test_json.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/unittests/framework/backends/test_json.py b/unittests/framework/backends/test_json.py index c9a02ffb8..a61425215 100644 --- a/unittests/framework/backends/test_json.py +++ b/unittests/framework/backends/test_json.py @@ -146,6 +146,17 @@ class TestJSONBackend(object): jsonschema.validate(json_, schema) + @pytest.mark.xfail + def test_ignores_invalid(self, tmpdir): + test = backends.json.JSONBackend(six.text_type(tmpdir)) + test.initialize(shared.INITIAL_METADATA) + with test.write_test(self.name) as t: + t(self.result) + tmpdir.join('tests/2.json.tmp').write('{}') + test.finalize( + {'time_elapsed': + results.TimeAttribute(start=0.0, end=1.0).to_json()}) + class TestUpdateResults(object): """Test for the _update_results function.""" |