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

Improve docstrings, add API section to Sphinx #112

Merged
merged 1 commit into from
Sep 19, 2023

Conversation

cmarqu
Copy link
Contributor

@cmarqu cmarqu commented Aug 27, 2023

No description provided.

@@ -647,15 +643,15 @@ def write(self, filepath: str = None, pretty=False):
class JUnitXml(Element):
"""The JUnitXml root object.

It may contains a :class:`TestSuites` or a :class:`TestSuite`.
It may contain :class:`TestSuites` or a :class:`TestSuite`.
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Actually, there is no TestSuites class (anymore?).

Copy link
Collaborator

Choose a reason for hiding this comment

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

I think this note refers to <TestSuites> and <TestSuite> tags that can be the root element of the XML.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I changed this accordingly.

@cmarqu cmarqu force-pushed the doc-improvements branch 2 times, most recently from 0456014 to 7d5deb5 Compare August 28, 2023 07:14
Copy link
Collaborator

@EnricoMi EnricoMi left a comment

Choose a reason for hiding this comment

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

Nice clean-up of the docstrings!

@codecov
Copy link

codecov bot commented Aug 28, 2023

Codecov Report

Patch coverage: 100.00% and no project coverage change.

Comparison is base (81085ec) 98.24% compared to head (a875691) 98.24%.

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #112   +/-   ##
=======================================
  Coverage   98.24%   98.24%           
=======================================
  Files           8        8           
  Lines        1428     1428           
=======================================
  Hits         1403     1403           
  Misses         25       25           
Files Changed Coverage Δ
junitparser/cli.py 50.00% <ø> (ø)
junitparser/xunit2.py 100.00% <ø> (ø)
junitparser/junitparser.py 99.12% <100.00%> (ø)

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

@weiwei weiwei merged commit 03bff13 into weiwei:master Sep 19, 2023
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