Python GUI Tests
Python GUI tests allow you to evaluate graphics produced using Python.

Adding a Python GUI Test

To add a Python GUI test, navigate to Checks in the left sidebar and use the New Check + button. Next, select the Python GUI Test option in the drop-down and see the settings below:

Settings

Description

The test description. Shown to users if the task is live and checks are shared (which is the default).

Solution Code

The Python code used to generate the solution image when the test is run. You can generate a sample of what this will look like by clicking the Run button.

Solution Output

The sample output generated with your solution code (click Run to generate).

Height

The height of the canvas area used to generate the image. Make as small as possible for higher test accuracy.

Width

The width of the canvas area used to generate the image. Make as small as possible for higher test accuracy.

Tolerance %

The tolerance threshold to consider the test to have passed. A tolerance value of 0% means the images must match exactly. The percent difference between the images will be affected by the size of the image canvas.