Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make unit tests pass under Python 3. #26

Merged
merged 1 commit into from
Jun 26, 2018
Merged

Conversation

kprav33n
Copy link
Contributor

Most of the issues were related to text encoding (byte vs utf-8), and XML
attributes ordering. These were fixed by modifying the tests to work with both
Python 3, and Python 2.7.

One interesting library issue identified was the ordering of elements in the XML
document that is produced from PyACI. As it was internally using dictionary to
store the list of children, the resulting element order was at the mercy of the
order of dictionary keys. To make this work correctly, modified the library to
use OrderedDict.

Most of the issues were related to text encoding (byte vs utf-8), and XML
attributes ordering. These were fixed by modifying the tests to work with both
Python 3, and Python 2.7.

One interesting library issue identified was the ordering of elements in the XML
document that is produced from PyACI. As it was internally using dictionary to
store the list of children, the resulting element order was at the mercy of the
order of dictionary keys. To make this work correctly, modified the library to
use OrderedDict.
@codecov
Copy link

codecov bot commented Jun 25, 2018

Codecov Report

Merging #26 into master will increase coverage by 0.08%.
The diff coverage is 72.72%.

Impacted file tree graph

@@            Coverage Diff            @@
##           master     #26      +/-   ##
=========================================
+ Coverage   60.02%   60.1%   +0.08%     
=========================================
  Files           8       8              
  Lines         918     920       +2     
=========================================
+ Hits          551     553       +2     
  Misses        367     367
Impacted Files Coverage Δ
pyaci/utils.py 58.97% <100%> (ø) ⬆️
pyaci/core.py 70.21% <70%> (+0.09%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update e89a9e0...3e747bb. Read the comment docs.

@kprav33n kprav33n merged commit 662c816 into datacenter:master Jun 26, 2018
@kprav33n kprav33n deleted the python3 branch June 26, 2018 02:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant