I have many python programs which I want to test. Most of them require input from the user. I would like to write another program which would import a program and run it, however instead of someone typing the inputs, the program will type predefined inputs.
e.g. There is a game which draws a 10x10 grid and at 20 random coordinates, there are mines. The aim of the game is to clear the mines.
Every time I add a feature to the game, I have to type all the coordinate pairs. There are 100 pairs!! I would like a program to go through all the pairs instead of me manually typing them.
Aucun commentaire:
Enregistrer un commentaire