naucse.python.cz icon indicating copy to clipboard operation
naucse.python.cz copied to clipboard

Arca backend used in tests

Open mikicz opened this issue 6 years ago • 0 comments

So I was looking at the failing test in test_arca_render and at first, I also had no clue what the problem is... But then after crawling through the logs and some experiments, I found the issue: the test is being run with arca.backend.CurrentEnvironmentBackend and the current environment has got naucse-render installed.

I really struggled to find why the hell CurrentEnvironmentBackend is used even though VenvBackend is configured in the tests (and even when I set the environ variable), but I finally found it in pytest.ini, the environ there overrides the VenvBackend in tests and even the backend provided in CLI.

I'm not exactly sure what backend you actually want to run it with so I'm not making a PR. Also, just as a heads up, VenvBackend does not work on Travis (https://github.com/travis-ci/travis-ci/issues/8589, issue closed because it was stale, but AFAIK still not resolved)

mikicz avatar Feb 02 '19 12:02 mikicz