Skip to content

Added python tests to improve coverage.#480

Merged
ajgdls merged 19 commits into
masterfrom
python_coverage
Jul 13, 2026
Merged

Added python tests to improve coverage.#480
ajgdls merged 19 commits into
masterfrom
python_coverage

Conversation

@ajgdls

@ajgdls ajgdls commented Mar 13, 2026

Copy link
Copy Markdown
Contributor

No description provided.

@ajgdls ajgdls self-assigned this Mar 13, 2026
Comment thread python/tests/test_meta_writer.py Outdated
@codecov

codecov Bot commented Mar 17, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 47.44%. Comparing base (9a92832) to head (4c4e964).

Additional details and impacted files
@@             Coverage Diff             @@
##           master     #480       +/-   ##
===========================================
+ Coverage   33.66%   47.44%   +13.77%     
===========================================
  Files          95       95               
  Lines        7690     7685        -5     
  Branches      672      672               
===========================================
+ Hits         2589     3646     +1057     
+ Misses       4907     3845     -1062     
  Partials      194      194               

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@GDYendell GDYendell moved this to 🏗 In progress in Odin Core Development Mar 18, 2026
@Ohisemega
Ohisemega requested a review from timcnicholls March 26, 2026 10:04
@JamesOHeaDLS JamesOHeaDLS modified the milestone: I07 SumPlugin May 6, 2026
@ajgdls
ajgdls force-pushed the python_coverage branch from f9288df to fb10bf6 Compare May 11, 2026 13:09
@ajgdls
ajgdls requested a review from JamesOHeaDLS May 12, 2026 10:56
@ajgdls

ajgdls commented May 12, 2026

Copy link
Copy Markdown
Contributor Author

Coverage for Python tests pushed above 80%

@JamesOHeaDLS JamesOHeaDLS left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks Alan, this all looks good and runs nicely.

I have made comments for 2 very minor points.

A discussion point for another time - at the moment we seem to have a fairly even mix of unittest.TestCase style tests and pytest style tests. This is most apparent with the assertEqual(a, b) vs assert a == b lines. I think it would make sense to use a consistent approach across all tests. pytest would be my preference. I can raise this at the next core developers meeting.

Comment thread python/tests/test_ipc_tornado_channel.py Outdated
Comment thread python/tests/test_ipc_client.py Outdated
@ajgdls

ajgdls commented May 18, 2026

Copy link
Copy Markdown
Contributor Author

Thanks Alan, this all looks good and runs nicely.

I have made comments for 2 very minor points.

A discussion point for another time - at the moment we seem to have a fairly even mix of unittest.TestCase style tests and pytest style tests. This is most apparent with the assertEqual(a, b) vs assert a == b lines. I think it would make sense to use a consistent approach across all tests. pytest would be my preference. I can raise this at the next core developers meeting.

Thanks @JamesOHeaDLS yeah I did debate a bit around this and changed a couple already. I could convert to pytest pretty easily for some of them, so I'll see if it's easy to just switch them all over.

@ajgdls
ajgdls requested review from GDYendell, JamesOHeaDLS and timcnicholls and removed request for GDYendell and timcnicholls June 5, 2026 15:42

@JamesOHeaDLS JamesOHeaDLS left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks @ajgdls - looks good and all tests run succesfully

I've just two suggestions for fixture tweaks

Comment thread python/tests/test_ctrl_client.py Outdated
Comment thread python/tests/test_ctrl_client.py Outdated
@ajgdls
ajgdls force-pushed the python_coverage branch from 81c1518 to 4c4e964 Compare July 10, 2026 15:26
@ajgdls
ajgdls requested review from GDYendell, JamesOHeaDLS and Ohisemega and removed request for GDYendell July 10, 2026 16:06

@JamesOHeaDLS JamesOHeaDLS left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks Alan - looks good and all tests run and pass

@ajgdls
ajgdls merged commit 878e04f into master Jul 13, 2026
18 checks passed
@ajgdls
ajgdls deleted the python_coverage branch July 13, 2026 10:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: 🏗 In progress

Development

Successfully merging this pull request may close these issues.

4 participants