from mpf.main import main



def test_main():
    main()

import matplotlib
matplotlib.use('Agg')  # Not to use X server. For TravisCI.

from mpf.main import main



def test_main():
    main()

Make matplotlib work with TravisCI