summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorRobert Collins <robertc@robertcollins.net>2012-05-03 20:18:01 +1200
committerRobert Collins <robertc@robertcollins.net>2012-05-03 20:18:01 +1200
commit26406f13e81807f8a3e94eae31fa7acc0bbaa0c2 (patch)
tree824fbad76ac2313b4df159c5c599a1993d13f6fe /python
parent09a69c5bc1ef7daafb2b167c43092bf94dc0dee6 (diff)
downloadsubunit-git-26406f13e81807f8a3e94eae31fa7acc0bbaa0c2.tar.gz
Make _make_tag_filter public.
Diffstat (limited to 'python')
-rw-r--r--python/subunit/test_results.py2
-rw-r--r--python/subunit/tests/test_subunit_filter.py6
2 files changed, 4 insertions, 4 deletions
diff --git a/python/subunit/test_results.py b/python/subunit/test_results.py
index 1b14c5f..c00a2d3 100644
--- a/python/subunit/test_results.py
+++ b/python/subunit/test_results.py
@@ -309,7 +309,7 @@ def and_predicates(predicates):
return lambda *args, **kwargs: all(p(*args, **kwargs) for p in predicates)
-def _make_tag_filter(with_tags, without_tags):
+def make_tag_filter(with_tags, without_tags):
"""Make a callback that checks tests against tags."""
with_tags = with_tags and set(with_tags) or None
diff --git a/python/subunit/tests/test_subunit_filter.py b/python/subunit/tests/test_subunit_filter.py
index d716578..222359b 100644
--- a/python/subunit/tests/test_subunit_filter.py
+++ b/python/subunit/tests/test_subunit_filter.py
@@ -28,7 +28,7 @@ from testtools.compat import _b, BytesIO
from testtools.testresult.doubles import ExtendedTestResult
import subunit
-from subunit.test_results import _make_tag_filter, TestResultFilter
+from subunit.test_results import make_tag_filter, TestResultFilter
class TestTestResultFilter(TestCase):
@@ -81,7 +81,7 @@ xfail todo
self.assertEqual(4, filtered_result.testsRun)
def test_tag_filter(self):
- tag_filter = _make_tag_filter(['global'], ['local'])
+ tag_filter = make_tag_filter(['global'], ['local'])
result = ExtendedTestResult()
result_filter = TestResultFilter(
result, filter_success=False, filter_predicate=tag_filter)
@@ -94,7 +94,7 @@ xfail todo
self.assertEquals(tests_expected, tests_included)
def test_tags_tracked_correctly(self):
- tag_filter = _make_tag_filter(['a'], [])
+ tag_filter = make_tag_filter(['a'], [])
result = ExtendedTestResult()
result_filter = TestResultFilter(
result, filter_success=False, filter_predicate=tag_filter)