Skip to content
Commit 42bb69a6 authored by Simon Feltman's avatar Simon Feltman Committed by Colin Walters
Browse files

tests: Refactor test_parser and test_patterns to use unittest.TestSuite

Update both test_parser.py and test_patterns.py to dynamically generate
TestCase sub-classes rather than modify a statically defined one.
Use unittest.TestSuite to queue up the generated test cases via the
"load_tests" hook.
Use underscores instead of periods as a seperator for dynamically generated
test cases and methods to match Python identifiers.
Beyond general cleanup, these changes will help the ability to specify
Python tests individually.

https://bugzilla.gnome.org/show_bug.cgi?id=720713
parent 4e88f0eb
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment