evhub / evhub/coconut

Changes introduced in 1.3.1.post0.dev21 break build

Open
#402 3 comments 0 reactions 0 assignees View on GitHub
oversight
Dominant language
Python
Stars
4.4k
Forks
142
PR merge metrics
No merged PRs in 30d

Description

In my test code I mock user input to simulate interactive console interaction.
Since above mentioned version, the tests jump into interactive mode instead of being mocked (vs. `.dev20`, which I just confirmed to still work).

The code in question is thus:
```
input builtins
def mockInput(datas:str[], func) -> Any:
with mock.patch("builtins.input", side_effect = datas): return func()
```
being used in the test cases as
```
mockInput(["t"], () -> sos.update("mod", ["--ask-lines"]))
```

Any changes in the coconut imports that lead to that error?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.