Skip to content

Add unit tests to transaction.py #406

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

Merged
merged 3 commits into from
Dec 13, 2024
Merged

Conversation

tacmota
Copy link
Contributor

@tacmota tacmota commented Dec 13, 2024

Increase test coverage for transaction.py

Copy link

codecov bot commented Dec 13, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 86.40%. Comparing base (93f9362) to head (48d00b6).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #406      +/-   ##
==========================================
+ Coverage   86.08%   86.40%   +0.32%     
==========================================
  Files          32       32              
  Lines        4205     4201       -4     
  Branches     1049     1047       -2     
==========================================
+ Hits         3620     3630      +10     
+ Misses        408      399       -9     
+ Partials      177      172       -5     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@@ -88,6 +90,8 @@ def normalize(self) -> Asset:
for k, v in list(self.items()):
if v == 0:
self.pop(k)

# traceback.print_stack()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please remove this leftover comment and the corresponding import :)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you! Just removed.

@nielstron
Copy link
Contributor

nielstron commented Dec 13, 2024

Looks good, thank you for your contribution! Just a minor comment to address.

Copy link
Collaborator

@cffls cffls left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

@cffls cffls merged commit 7a3c782 into Python-Cardano:main Dec 13, 2024
11 checks passed
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.

3 participants