Skip to content

Instantly share code, notes, and snippets.

View ascrookes's full-sized avatar

Amadou Crookes ascrookes

  • OpenAI
  • Oakland CA
View GitHub Profile
@GenevieveBuckley
GenevieveBuckley / test_monkeypatch.py
Last active March 11, 2026 20:37
Monkeypatching user input with pytest
from io import StringIO
def double():
x = input("Enter an integer: ")
return int(x) * 2
def adding():
x = float(input('Enter the first number'))