<s> from django . test . simple import DjangoTestRunner , DjangoTestSuiteRunner <EOL> from noseachievements . plugin import AchievementsPlugin <EOL> from noseachievements . result import AchievementsTestResult <EOL> from noseachievements . runner import AchievementsTestRunner <EOL> class AchievementsDjangoTestResult ( AchievementsTestResult ) : <EOL> def stopTest ( self , test ) : <EOL> super ( AchievementsDjangoTestResult , self ) . stopTest ( test ) <EOL> if ( ( self . _runner . failfast and not self . wasSuccessful ( ) ) or <EOL> self . _runner . _keyboard_interrupt_intercepted ) : <EOL> self . stop ( ) <EOL> class AchievementsDjangoTestRunner ( DjangoTestRunner , AchievementsTestRunner ) : <EOL> _result_class = AchievementsDjangoTestResult <EOL> def _makeResult ( self ) : <EOL> result = super ( AchievementsDjangoTestRunner , self ) . _makeResult ( ) <EOL> result . _runner = self <EOL> return result <EOL> class AchievementsDjangoTestSuiteRunner ( DjangoTestSuiteRunner ) : <EOL> _runner_class = AchievementsDjangoTestRunner <EOL> def run_suite ( self , suite , ** kwargs ) : <EOL> return self . _runner_class ( verbosity = self . verbosity , <EOL> failfast = self . failfast ) . run ( suite ) </s>
