diff options
Diffstat (limited to 'tests/test_result.py')
-rw-r--r-- | tests/test_result.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/test_result.py b/tests/test_result.py index 6df834a..206a99c 100644 --- a/tests/test_result.py +++ b/tests/test_result.py @@ -10,6 +10,18 @@ def pkg(tmpdir): p.write("whatever") return p +def test_pre_set_header(pkg): + replog = ResultLog() + d = replog.dict + assert replog.dict == d + assert replog.dict["reportversion"] == "1" + assert replog.dict["toxversion"] == tox.__version__ + assert replog.dict["platform"] == sys.platform + assert replog.dict["host"] == py.std.socket.getfqdn() + data = replog.dumps_json() + replog2 = ResultLog.loads_json(data) + assert replog2.dict == replog.dict + def test_set_header(pkg): replog = ResultLog() d = replog.dict |