471,348 Members | 1,492 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,348 software developers and data experts.

How to change default behavior

Greetings,

I am using pyuniit for my test cases.

I want to change the default behavior to report the errors. I believe
it calls TextTestRunner class before calling my test_class(which is
child of TestCase class) to set up the framework for error reporting
and so on. I can see that it makes the "result" variable of type
_TextTestResult class. So while reporting errors, it calls functions
of this class.

I want to overload the TextTestRunner class and want to make result of
type my class, so in further linage of function calls it should call
functions of my class instead of _TextTestResult.

But I was not able to find out how does python test framework calls
TextTestRunner automatically. Somehow I want to make it call my
overloaded class.
Could anybody help me out. Thanks in anticipation.
JD

Jun 25 '07 #1
0 903

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Joel D Kraft | last post: by
25 posts views Thread by =?Utf-8?B?RGF2aWQgVGhpZWxlbg==?= | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.