new e502 adc
This commit is contained in:
@ -5,6 +5,8 @@ import sys
|
||||
import unittest
|
||||
from pathlib import Path
|
||||
|
||||
from rfg_adc_plotter.cli import build_parser
|
||||
|
||||
|
||||
ROOT = Path(__file__).resolve().parents[1]
|
||||
|
||||
@ -20,6 +22,13 @@ def _run(*args: str) -> subprocess.CompletedProcess[str]:
|
||||
|
||||
|
||||
class CliTests(unittest.TestCase):
|
||||
def test_logscale_is_opt_in(self):
|
||||
args = build_parser().parse_args(["/dev/null"])
|
||||
self.assertFalse(args.logscale)
|
||||
|
||||
args_log = build_parser().parse_args(["/dev/null", "--logscale"])
|
||||
self.assertTrue(args_log.logscale)
|
||||
|
||||
def test_wrapper_help_works(self):
|
||||
proc = _run("RFG_ADC_dataplotter.py", "--help")
|
||||
self.assertEqual(proc.returncode, 0)
|
||||
|
||||
Reference in New Issue
Block a user