From 705741ab624c2570f1f30b99808809f239f60859 Mon Sep 17 00:00:00 2001 From: Robert Collins Date: Tue, 11 Feb 2014 13:17:59 +1300 Subject: * ``run`` was outputting bad MIME types - test/plain, not text/plain. (Robert Collins) --- NEWS | 6 ++++++ testrepository/commands/run.py | 2 +- testrepository/tests/commands/test_run.py | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/NEWS b/NEWS index 715b1eb..e17b622 100644 --- a/NEWS +++ b/NEWS @@ -5,6 +5,12 @@ testrepository release notes NEXT (In development) +++++++++++++++++++++ +CHANGES +------- + +* ``run`` was outputting bad MIME types - test/plain, not text/plain. + (Robert Collins) + 0.0.18 ++++++ diff --git a/testrepository/commands/run.py b/testrepository/commands/run.py index 7b6cd40..3c21e25 100644 --- a/testrepository/commands/run.py +++ b/testrepository/commands/run.py @@ -79,7 +79,7 @@ class ReturnCodeToSubunit(object): if v2_avail: stream = subunit.StreamResultToBytes(self.source) stream.status(test_id='process-returncode', test_status='fail', - file_name='traceback', mime_type='test/plain;charset=utf8', + file_name='traceback', mime_type='text/plain;charset=utf8', file_bytes=('returncode %d' % returncode).encode('utf8')) else: self.source.write(_b('test: process-returncode\n' diff --git a/testrepository/tests/commands/test_run.py b/testrepository/tests/commands/test_run.py index da94ca2..a6d9ce1 100644 --- a/testrepository/tests/commands/test_run.py +++ b/testrepository/tests/commands/test_run.py @@ -532,7 +532,7 @@ class TestReturnCodeToSubunit(ResourcedTestCase): buffer.write(b'foo\nbar\n') stream = subunit.StreamResultToBytes(buffer) stream.status(test_id='process-returncode', test_status='fail', - file_name='traceback', mime_type='test/plain;charset=utf8', + file_name='traceback', mime_type='text/plain;charset=utf8', file_bytes=b'returncode 1') expected_content = buffer.getvalue() else: -- cgit v1.2.1