Add CreateTypeLib and ICreateTypeInfo tests.#915
Merged
junkmd merged 4 commits intoenthought:mainfrom Jan 25, 2026
Merged
Conversation
This commit introduces `Test_CreateTypeLib` to `test_typeinfo.py`, verifying `ICreateTypeLib`'s ability to set type library documentation.
This adds a test for the `ICreateTypeLib.CreateTypeInfo` method, ensuring that it correctly creates an `ICreateTypeInfo` instance.
This test ensures that `ICreateTypeLib` methods like `SetGuid`, `SetLcid`, `SetVersion`, and `SetLibFlags` correctly persist library attributes. It verifies these attributes by loading the created type library and comparing the `LIBATTR` fields.
This commit introduces `Test_ICreateTypeInfo` to `test_typeinfo.py`, specifically testing the `ICreateTypeInfo.SetDocString` and `ICreateTypeInfo.SetHelpContext` methods. It ensures that documentation set on a type information object is correctly persisted and can be retrieved after the type library is saved and reloaded.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #915 +/- ##
==========================================
+ Coverage 87.13% 87.19% +0.06%
==========================================
Files 135 135
Lines 12723 12787 +64
==========================================
+ Hits 11086 11150 +64
Misses 1637 1637 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
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.
Overview
This pull request introduces comprehensive tests for
CreateTypeLibandICreateTypeInfointypeinfo.py.These tests validate the creation and manipulation of type libraries and type information objects, ensuring their correct behavior regarding documentation, library attributes, and type information generation.