ansys / pydynamicreporting

Pyansys project for Ansys Dynamic Reporting, a report generator tool.
https://dynamicreporting.docs.pyansys.com/
MIT License
7 stars 1 forks source link

Add the userdefinedREST object #81

Closed randallfrank closed 6 months ago

randallfrank commented 6 months ago

Include the Python object interface for the userdefined template.

codecov-commenter commented 6 months ago

Codecov Report

Attention: 30 lines in your changes are missing coverage. Please review.

Comparison is base (1ebebe3) 75.79% compared to head (a3db7d9) 75.52%. Report is 3 commits behind head on main.

Files Patch % Lines
...nsys/dynamicreporting/core/utils/report_objects.py 52.17% 21 Missing and 1 partial :warning:
src/ansys/dynamicreporting/core/adr_report.py 56.25% 6 Missing and 1 partial :warning:
src/ansys/dynamicreporting/core/adr_service.py 50.00% 1 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #81 +/- ## ========================================== - Coverage 75.79% 75.52% -0.27% ========================================== Files 16 16 Lines 4937 4997 +60 Branches 1046 1050 +4 ========================================== + Hits 3742 3774 +32 - Misses 845 872 +27 - Partials 350 351 +1 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

randallfrank commented 6 months ago

You'll need to add tests against this API in the test_report_objects.py to make sure the code coverage stays > 80%

I added a test for the new object that exercises the properties.