config: test_homepage_mapping_skip_ci failure
Test failure seen in testing container. /home/fbx
exists but is empty.
====================================== FAILURES =======================================
____________________________ test_homepage_mapping_skip_ci ____________________________
def test_homepage_mapping_skip_ci():
"""Special tests for homepage functions."""
try:
UWS_DIRECTORY = uws_directory_of_user(os.getlogin())
except OSError:
reason = "Needs access to ~/ directory. " \
+ "CI sandboxed workspace doesn't provide it."
pytest.skip(reason)
if os.path.exists(UWS_DIRECTORY):
reason = "UWS dir {} exists already.".format(UWS_DIRECTORY)
pytest.skip(reason)
f = _home_page_scid2url
try:
os.mkdir(UWS_DIRECTORY)
except FileNotFoundError:
pytest.skip('Home folder cannot be accessed on buildd.')
> assert '/~fbx/' == f('uws-fbx')
E AssertionError: assert '/~fbx/' == None
E + where None = <function _home_page_scid2url at 0x7fafe832e700>('uws-fbx')
plinth/modules/config/tests/test_config.py:111: AssertionError
================================== warnings summary ===================================
/usr/lib/python3/dist-packages/cherrypy/lib/httputil.py:43
/usr/lib/python3/dist-packages/cherrypy/lib/httputil.py:43: DeprecationWarning: invalid escape sequence \*
"""Return the given path \*atoms, joined into a single URL.
/usr/lib/python3/dist-packages/cherrypy/_cpreqbody.py:328
/usr/lib/python3/dist-packages/cherrypy/_cpreqbody.py:328: DeprecationWarning: invalid escape sequence \*
"""A list of strings, each of which should be a known encoding.
/usr/lib/python3/dist-packages/cherrypy/_cpreqbody.py:577
/usr/lib/python3/dist-packages/cherrypy/_cpreqbody.py:577: DeprecationWarning: invalid escape sequence \*
"""A list of strings, each of which should be a known encoding.
/usr/lib/python3/dist-packages/cherrypy/process/wspbus.py:1
/usr/lib/python3/dist-packages/cherrypy/process/wspbus.py:1: DeprecationWarning: invalid escape sequence \_
"""An implementation of the Web Site Process Bus.
/usr/lib/python3/dist-packages/cherrypy/process/servers.py:1
/usr/lib/python3/dist-packages/cherrypy/process/servers.py:1: DeprecationWarning: invalid escape sequence \
"""
plinth/modules/sso/tests/test_actions.py::test_generate_ticket
/home/james/freedombox/freedombox/plinth/modules/sso/tests/../../../../actions/auth-pubtkt:87: DeprecationWarning: str for data is no longer accepted, use bytes
sig = crypto.sign(pkey, data, 'sha512')
-- Docs: https://docs.pytest.org/en/latest/warnings.html
============ 1 failed, 431 passed, 47 skipped, 6 warnings in 11.90 seconds ============