James Kuszmaul | 469fd4e | 2020-01-01 15:49:10 -0800 | [diff] [blame^] | 1 | #!/usr/bin/python3 |
| 2 | import unittest |
| 3 | |
| 4 | import matplotlib |
| 5 | # Use a non-interactive backend so that the test can actually run... |
| 6 | matplotlib.use('Agg') |
| 7 | |
| 8 | import frc971.analysis.plot |
| 9 | |
| 10 | |
| 11 | class PlotterTest(unittest.TestCase): |
| 12 | def test_plotter(self): |
| 13 | """Basic test that makes sure that we can run the test without crashing.""" |
| 14 | self.assertEqual(0, |
| 15 | frc971.analysis.plot.main([ |
| 16 | "binary", "--logfile", |
| 17 | "external/sample_logfile/file/log.fbs", |
| 18 | "--config", "gyro.pb" |
| 19 | ])) |
| 20 | |
| 21 | |
| 22 | if __name__ == '__main__': |
| 23 | unittest.main() |