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
Make matplotlib work with TravisCI

+ 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
## Code Before:
from mpf.main import main



def test_main():
    main()

## Instruction:
Make matplotlib work with TravisCI
## Code After:
import matplotlib
matplotlib.use('Agg')  # Not to use X server. For TravisCI.

from mpf.main import main



def test_main():
    main()
