I'm trying to monkeypatch in pytest the input function to simulate user input but I'm getting an attribute error.
I receive the same error when I use the mock.patch.object as well. But I'm able to readily monkeypatch the input when I'm in a regular Python environment, I only get this error in testing.
What could be causing this issue?
Edit
Adding additional screenshot trying same thing using unittest.mock