mu icon indicating copy to clipboard operation
mu copied to clipboard

Test suite should be as isolated as possible

Open tjguk opened this issue 3 years ago • 0 comments

What were you trying to do?

Run Tests

What steps did you take to trigger the issue?

No response

What did you expect to happen?

test_workspace_dir_posix_chromeos_missing to pass

What actually happened?

it failed with:

E AssertionError: assert False E + where False = <built-in method endswith of str object at 0x0000026ECFD6C170>('mu_code') E + where <built-in method endswith of str object at 0x0000026ECFD6C170> = 'c:/temp/mu-workspace'.endswith E + where 'c:/temp/mu-workspace' = <bound method CircuitPythonMode.workspace_dir of <mu.modes.circuitpython.CircuitPythonMode object at 0x0000026ED3C6FF70>>() E + where <bound method CircuitPythonMode.workspace_dir of <mu.modes.circuitpython.CircuitPythonMode object at 0x0000026ED3C6FF70>> = <mu.modes.circuitpython.CircuitPythonMode object at 0x0000026ED3C6FF70>.workspace_dir

tests\modes\test_circuitpython.py:187: AssertionError

Operating System Version

No response

Mu Version

No response

Other Info

The test suite was picking up a settings.json file I was using for something, which specified an alternative location and name for the workspace folder. The circuitpy test was asserting that it ended with "mu_code", which the default does. But my settings.json had overridden that and so the test failed.

Editor Log

No response

tjguk avatar Jul 18 '22 20:07 tjguk