piscsi icon indicating copy to clipboard operation
piscsi copied to clipboard

Web UI test suite assumes /home/pi root

Open rdmark opened this issue 3 years ago • 1 comments

In the latest develop:

The newly added Web UI test suite assumes that files are located under /home/pi

python/web/tests/api/conftest.py

CFG_DIR = "/home/pi/.config/rascsi"
IMAGES_DIR = "/home/pi/images"
AFP_DIR = "/home/pi/afpshare"

We should make this configurable, for instance: python/web/tests/conftest.py

def pytest_addoption(parser):
    parser.addoption("--prefix", action="store", default="/home/pi")

rdmark avatar Sep 26 '22 22:09 rdmark

@nucleogenic FYI so that this isn't forgotten

rdmark avatar Sep 26 '22 22:09 rdmark

Fixed with https://github.com/akuker/RASCSI/pull/901

rdmark avatar Oct 15 '22 02:10 rdmark