try new synchro method
This commit is contained in:
@ -22,12 +22,14 @@ def _run(*args: str) -> subprocess.CompletedProcess[str]:
|
||||
|
||||
|
||||
class CliTests(unittest.TestCase):
|
||||
def test_logscale_is_opt_in(self):
|
||||
def test_logscale_and_opengl_are_opt_in(self):
|
||||
args = build_parser().parse_args(["/dev/null"])
|
||||
self.assertFalse(args.logscale)
|
||||
self.assertFalse(args.opengl)
|
||||
|
||||
args_log = build_parser().parse_args(["/dev/null", "--logscale"])
|
||||
args_log = build_parser().parse_args(["/dev/null", "--logscale", "--opengl"])
|
||||
self.assertTrue(args_log.logscale)
|
||||
self.assertTrue(args_log.opengl)
|
||||
|
||||
def test_wrapper_help_works(self):
|
||||
proc = _run("RFG_ADC_dataplotter.py", "--help")
|
||||
@ -41,6 +43,7 @@ class CliTests(unittest.TestCase):
|
||||
self.assertIn("usage:", proc.stdout)
|
||||
self.assertIn("--parser_16_bit_x2", proc.stdout)
|
||||
self.assertIn("--parser_complex_ascii", proc.stdout)
|
||||
self.assertIn("--opengl", proc.stdout)
|
||||
|
||||
def test_backend_mpl_reports_removal(self):
|
||||
proc = _run("-m", "rfg_adc_plotter.main", "/dev/null", "--backend", "mpl")
|
||||
|
||||
Reference in New Issue
Block a user