[WIP] Refactor approach to code generation, improve test suite. #107
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
!!!!! DO NOT MERGE THIS PULL REQUEST !!!!!
I'm opening this pull request to get feedback on the additional tests I've started to add in my branch since it has started to grow to the point where the structure of the test cases in modules, sub modules and classes has started to become relevant.
I've marked some tests as skipped due to limitations of the simple test method I used to get all these added in this initial work, and I've marked a few items as expected failures when they test things that returned as NotImplemented.
I have added all the test case files that seemed appropriate from the W3C test case repository but so far I have only added the simple "can generate client code" tests for the WSDL documents. I have yet to start on the WSDL Server tests or the XSD to Python Tests.
The breadth of these tests has me pondering a significant change to the code generation as well. At the moment I'm exploring the use of the RedBaron library to enable a transition from the current templated generation approach, to one where templates are used to generate small segments of code, such as a class, function, or variable, and these are brought together by relying on RedBaron to handle the task of ensuring we generate a valid AST and python code from that AST.
Thoughts?
Feedback?
P.S. - PLEASE DO NOT MERGE THIS PULL REQUEST