From 87338c132fb605881db065c20b9aa2f293946e8e Mon Sep 17 00:00:00 2001 From: Jonathan Lange Date: Thu, 19 Apr 2012 19:13:36 +0100 Subject: don't rely on current_tags, implement it ourselves. --- python/subunit/tests/test_subunit_filter.py | 8 +++++--- python/subunit/tests/test_test_results.py | 10 ---------- 2 files changed, 5 insertions(+), 13 deletions(-) (limited to 'python/subunit/tests') diff --git a/python/subunit/tests/test_subunit_filter.py b/python/subunit/tests/test_subunit_filter.py index d5f204a..35d4603 100644 --- a/python/subunit/tests/test_subunit_filter.py +++ b/python/subunit/tests/test_subunit_filter.py @@ -92,7 +92,6 @@ xfail todo ('startTest', test), ('addSuccess', test), ('stopTest', test), - ('tags', set(['local']), set()), ], result._events) @@ -298,9 +297,12 @@ xfail todo events = self.to_events(output) foo = subunit.RemotedTestCase('foo') self.assertEqual( - [('startTest', foo), + [('tags', set(['a']), set()), + ('startTest', foo), ('addSuccess', foo), - ('stopTest', foo)], + ('stopTest', foo), + ('tags', set(), set(['a'])), + ], events) diff --git a/python/subunit/tests/test_test_results.py b/python/subunit/tests/test_test_results.py index 2bec7e3..6beb57a 100644 --- a/python/subunit/tests/test_test_results.py +++ b/python/subunit/tests/test_test_results.py @@ -56,16 +56,6 @@ class AssertBeforeTestResult(LoggingDecorator): super(AssertBeforeTestResult, self)._before_event() -class TestTestResultDecorator(unittest.TestCase): - - def test_current_tags(self): - result = ExtendedTestResult() - decorator = subunit.test_results.TestResultDecorator(result) - decorator.tags(set('foo'), set()) - self.assertEqual(set('foo'), decorator.current_tags) - self.assertEqual(decorator.current_tags, result.current_tags) - - class TimeCapturingResult(unittest.TestResult): def __init__(self): -- cgit v1.2.1