<div dir="ltr">Thanks!<div>Managed to cleanup the code and the tests are passing (using run_tests as you suggested)</div><div><br></div><div>Should I soft-commit it?</div><div><br></div><div>-Ran</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Feb 8, 2022 at 4:37 PM Dan Smith <<a href="mailto:dsmith@danplanet.com">dsmith@danplanet.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">> I am trying to test a new radio driver (for the Quansheng TG-UV2+),<br>
> I have it working on the app, however I am failing some tests:<br>
> <br>
> ======================================================================<br>
> ERROR: test_brute_force (tests.TestCase_QuanshengTGUV2)<br>
> Testing Quansheng TG-UV2+ brute force<br>
> ----------------------------------------------------------------------<br>
> Traceback (most recent call last):<br>
> File "tests/__init__.py", line 23, in wrapper<br>
> return fn(*a, **k)<br>
> File "tests/__init__.py", line 77, in test_brute_force<br>
> self._runtest(run_tests.TestCaseBruteForce)<br>
> File "tests/__init__.py", line 65, in _runtest<br>
> raise e.get_original_exception()<br>
> ValueError: None is not in list<br>
<br>
Sorry, the exception reporting in the tests is really poor.<br>
<br>
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.<br>
<br>
> (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)<br>
<br>
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.<br>
<br>
--Dan</blockquote></div>