Skip to content

Feat/unittest to pytest#149

Merged
vinitkumar merged 12 commits into
masterfrom
feat/unittest-to-pytest
Jul 22, 2022
Merged

Feat/unittest to pytest#149
vinitkumar merged 12 commits into
masterfrom
feat/unittest-to-pytest

Conversation

@vinitkumar

Copy link
Copy Markdown
Owner

No description provided.

Vinit Kumar added 3 commits July 22, 2022 22:59
We have a ids variable that stores a list of unique ids. The issue is
that it is globally shared and can mutate across tests. This caused a
failure in one of the test that shouldn't contain id but it does in this
case.

When the global ids is removed and put into the function where it is
used and the reference of ids in other functions properly instantiated,
we can see that the crash is gone.

- Github Issue: #150

Authored-by: Vinit Kumar <vinit.kumar@kidskonnect.nl>
Signed-off-by: Vinit Kumar <vinit.kumar@kidskonnect.nl>
@codecov-commenter

codecov-commenter commented Jul 22, 2022

Copy link
Copy Markdown

Codecov Report

Merging #149 (8345dff) into master (2b16ed9) will increase coverage by 0.39%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master     #149      +/-   ##
==========================================
+ Coverage   93.55%   93.95%   +0.39%     
==========================================
  Files           6        6              
  Lines         512      529      +17     
==========================================
+ Hits          479      497      +18     
+ Misses         33       32       -1     
Impacted Files Coverage Δ
json2xml/dicttoxml.py 89.09% <100.00%> (+0.55%) ⬆️
tests/test_dict2xml.py 100.00% <100.00%> (ø)
tests/test_json2xml.py 99.11% <100.00%> (-0.01%) ⬇️

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 2b16ed9...8345dff. Read the comment docs.

@vinitkumar vinitkumar merged commit 7faf018 into master Jul 22, 2022
@vinitkumar vinitkumar deleted the feat/unittest-to-pytest branch July 22, 2022 19:52
@vinitkumar vinitkumar restored the feat/unittest-to-pytest branch June 14, 2026 17:18
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.

2 participants