Potato : un outil simple et intégré à Python pour le debug !

Voir ici : GitHub - andrewruba/potato: A lightweight tool for debugging and testing Python code. Just type potato in your code and watch your script instantly stop running with a NameError. Zero dependencies. Infinite confusion. Use responsibly.

le gratin des test frameworks :potato:

1 « J'aime »

Mince je ne comprends pas, ça ne marche pas sur mon code :frowning:

def run(task, *args, **kwargs):
    try:
        return task(*args, **kwargs)
    except Exception as e:
        logger.error(e)

def print_task(text):
    potato
    print(text)

run(print_task, 'Hello World!')

:upside_down_face: