[Pyobjc-dev] Unittest for GUI-related functionality
Brought to you by:
ronaldoussoren
From: Ronald O. <ous...@ci...> - 2003-09-19 20:26:10
|
I've written a unittest for NSRectFillList (see the attached file), but I'm not sure how this should be merged into the generic unittest framework. What I've done so far: - The unittests that require access to the window server are in files with a 'guitest_' prefix, as opposed to 'test_' for normal unittests. - The 'if __name__ == "__main__":' part contains a hack to force a connection to the WindowServer - I've updated 'Scripts/allTestsTogether.py' to also run 'guitest_' tests. The last item should be changed a little, the script should check if it is possible to run these tests. This all works fine for the current tests, but I'm not sure if this is the right solution for tests that will have to pop up actual windows. Ronald |