Thanks!
Managed to cleanup the code and the tests are passing (using run_tests as you suggested)

Should I soft-commit it?

-Ran

On Tue, Feb 8, 2022 at 4:37 PM Dan Smith <dsmith@danplanet.com> wrote:
> I am trying to test a new radio driver (for the Quansheng TG-UV2+),
> I have it working on the app, however I am failing some tests:
>
> ======================================================================
> ERROR: test_brute_force (tests.TestCase_QuanshengTGUV2)
> Testing Quansheng TG-UV2+ brute force
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "tests/__init__.py", line 23, in wrapper
>     return fn(*a, **k)
>   File "tests/__init__.py", line 77, in test_brute_force
>     self._runtest(run_tests.TestCaseBruteForce)
>   File "tests/__init__.py", line 65, in _runtest
>     raise e.get_original_exception()
> ValueError: None is not in list

Sorry, the exception reporting in the tests is really poor.

My guess would be that somewhere in your driver you're trying to set a tone or more or other enum'd value into a Memory that isn't in the list (and is None). You might want to post your driver here and maybe one of us can figure out where it's stuck.

> (On top of that , I am not able to run a single driver test, when running :  tox --skip-pkg-install -e driver -- -d Quansheng_TG-UV2+ ,all the drivers run, which takes time, but that I can live with)

There's not much point in using tox without the venv stuff, so you might grab the run_tests from the repo and use it, which will run single tests easily.

--Dan