[Core] Extending inline docs for openai_utils.py, boosting coverage in test_utils.py, fixing #762#1046
Merged
ekzhu merged 16 commits intomicrosoft:mainfrom Dec 30, 2023
maxim-saplin:main
Merged
[Core] Extending inline docs for openai_utils.py, boosting coverage in test_utils.py, fixing #762#1046ekzhu merged 16 commits intomicrosoft:mainfrom maxim-saplin:main
openai_utils.py, boosting coverage in test_utils.py, fixing #762#1046ekzhu merged 16 commits intomicrosoft:mainfrom
maxim-saplin:main
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #1046 +/- ##
===========================================
+ Coverage 30.14% 40.96% +10.81%
===========================================
Files 30 30
Lines 4020 4028 +8
Branches 908 960 +52
===========================================
+ Hits 1212 1650 +438
+ Misses 2729 2252 -477
- Partials 79 126 +47
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
ekzhu
approved these changes
Dec 29, 2023
Merged
3 tasks
whiskyboy
pushed a commit
to whiskyboy/autogen
that referenced
this pull request
Apr 17, 2024
… in `test_utils.py`, fixing microsoft#762 (microsoft#1046) * fix for microsoft#762 ,get_config_list/oia assetion, docs, test * Improved docstrings * test_utils using fake data and temp files * "Black" formatting applied * Fix build (KEY_LOC and OAI_CONFIG_LIST as consts in test_client) * Ramping up openai_utils coverage * Missing parameter doc. --------- Co-authored-by: Eric Zhu <ekzhu@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why are these changes needed?
openai_utils.pytest_utils.pyhas more cases tested ramping up coveragetest_utils.pyno longer depends on files that are part of .gitignore (and hence not downloaded when cloning), utilises temp files and fake dataopenai_utils.get_config_list()has an assertion verifying that number of items in files is equal (replacing the current behaviour with out of index being thrown)Related issue number
Closes #762
Checks
P.S. settings up the full suite with all required open configs is a challenge, though I made sure the parts and tests impacted by the changes ran fine