I've searched all over the place, and I feel like I am missing something super basic.
I have the code below, and I think I have the test written, but I can't figure out the right argument to add when calling the test_input() function.
I am getting the error: File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.8_3.8.1776.0_x64__qbz5n2kfra8p0\lib\unittest\mock.py", line 1325, in patched return func(*newargs, **newkeywargs) TypeError: test_input() missing 1 required positional argument: 'mock_input'
def input_something():
input("Enter something")
@patch('builtins.input',return_value = 1)
def test_input(self, mock_input):
result = input_something()
self.assertEqual(result, 1)
test_input()