From 91e8c02503ec94239fe4cfbd4f59f87842fcda78 Mon Sep 17 00:00:00 2001 From: Skylar Saveland Date: Sat, 30 Mar 2013 12:55:27 -0700 Subject: [PATCH] add printright plugin --- django_nose/plugin.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/django_nose/plugin.py b/django_nose/plugin.py index 3cd7649..c8491fc 100644 --- a/django_nose/plugin.py +++ b/django_nose/plugin.py @@ -251,3 +251,14 @@ def prepareTest(self, test): if self.should_bundle: test = self._bundle_fixtures(test) return test + + +class PrintRightPlugin(Plugin): + """ + Prints out tests like path.to:TestClass.method + """ + name = 'printright' + + def describeTest(self, test): + address = test.address() + return "%s:%s" % (address[1], address[2])