improvements on dicttoxml#121
Conversation
|
Can you please stop mentioning me? Thank you. |
|
1 similar comment
|
|
@DirkRichter Thanks for the timely fix. Since it's a big change, let me look into the code and understand before merging it. |
|
@DirkRichter Looked into the the code, it mostly looks good. Can we also adds tests supporting this new functionality. Something similar to how I test these? https://github.com/vinitkumar/json2xml/blob/master/tests/test_json2xml.py#L189 using an example json file: https://github.com/vinitkumar/json2xml/blob/master/examples/booleanjson2.json And while we are at it, we should also update the readme about this newly added support for namespaces. Please let me know what you think about these? |
|
Yes, good idea: i will provide tests for checking future changes and to demonstrate usage. The namespace-support is just for xml (not sure how to handle in json). |
|
Your new test shows problems with the old dicttoxml. The json sample results in this xml: in my fixed dicttoxml version, corrently this xml is produced: Thus i will adapt the test. Or is there something, i'm not seeing? |
I think your changes are correct. Please adapt the test accordingly. |
…tem_func + some new tests added
|
|
@DirkRichter There seems to be some conflicts as well. Can you please resolve them too? |
# Conflicts: # tests/test_json2xml.py
|
@DirkRichter Please feel free to make the changes. |
|
@DirkRichter Also, I added flake8 and isort in the mix, so if there are lint failures, CI will fail and you will need to clean up the code. |
Codecov Report
@@ Coverage Diff @@
## master #121 +/- ##
==========================================
+ Coverage 86.27% 89.11% +2.83%
==========================================
Files 5 5
Lines 379 441 +62
==========================================
+ Hits 327 393 +66
+ Misses 52 48 -4
Continue to review full report at Codecov.
|
|
@DirkRichter Thanks a tonne for all your hardwork. I will merge the PR now and then I want the code to brew for a while, and then make a major release. I might also do some optimisation on top of it before making the release. |
|
@DirkRichter I think some code went missing during merge/fixing conflicts. This doesn't seems to work with that I merged last evening. |
Sorry, I was not able to extend your pull-request #120, thus i ceated a new one with fix for the failing test.