The original version of this code caused inconsistencies in the event loop associated with a given thread. These changes elimintate the event loop shenanigans the mocks were trying to play by updating _sync_await to create an event loop if none exists in the current thread. It's possible that this will cause problems if the tests run on a different thread than the original program, as the tests are likely to end up waiting on outputs created by the program, which is not supported in Python. Also adds test coverage of the mocking/testing support in Python.
25 lines
430 B
Text
25 lines
430 B
Text
*.swp
|
|
/vendor/
|
|
**/node_modules/
|
|
**/bin
|
|
**/.vscode/
|
|
**/.vs/
|
|
**/.ionide/
|
|
**/.idea/
|
|
coverage.cov
|
|
*.coverprofile
|
|
|
|
**/.idea/
|
|
*.iml
|
|
|
|
# VSCode creates this binary when running tests in the debugger
|
|
**/debug.test
|
|
|
|
# Go tests run "in tree" and this folder will linger if they fail (the integration test framework cleans
|
|
# it up when they pass.)
|
|
**/command-output/
|
|
|
|
# By default, we don't check in yarn.lock files
|
|
**/yarn.lock
|
|
|
|
.mypy_cache
|