You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix old index bug in call_with_inout (enthought#473)
* bugfix in `call_with_inout`
* minor cleanup
* handling the case of no in and no out
* Test case for _fix_inout_args
* additional cleanup and error handling
* code formatting fixed
* fix python 3.7 and 3.8 compatibility
* Temporary addition of real-world test
* code cleanup
* intermediate commit, do not review
* Refactor of unit test, removing portdevice test
* fix global side-effect of other skipped test
* Update comtypes/test/test_outparam.py
Co-authored-by: Jun Komoda <[email protected]>
* work on tests for inout_args and outparam
- cleanup for test_outparam.py
- improvements to test_inout_args.py
- comments on a possible error in _memberspec.py
* removing dead code
* rename variables and add assertions
* pass `MagicMock` instead of `ut.TestCase`
* make tests for each argument passing patterns
* remove duplicated comments
* update test code for readability
- remove name from mock
- move line breaks to between mock preparations and assertions
* split the testcases
* add `Test_Error`
* minor corrections, remove redundancy, migration
- rewrite the permutations test
- missing direction and omitted name redundant
- migrate autogenerated keywords
- TBD: more real life tests
* Add tests covering 24 patterns
- instead of using `if` statements and `permutations`
* update test name
* add real world tests, remove old code
* formatting issue
* Update comtypes/_memberspec.py
dict type annotation
Co-authored-by: Jun Komoda <[email protected]>
* Change missing 'in' or 'out' to be treated as 'in'
* Add real-world test: param without 'in' or 'out'
* add `contextlib.redirect_stdout`
to supress warnings
* apply review feedback
* update comments
* add line breaks to lines longer than 88 characters
* Update comtypes/test/test_inout_args.py
---------
Co-authored-by: jonschz <[email protected]>
Co-authored-by: Jonathan <[email protected]>
Co-authored-by: Jun Komoda <[email protected]>
0 commit comments