mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-01-28 08:03:36 +00:00
tests: functional: Strip trailing / from FREEDOMBOX_URL
Some web app tests combine the configured URL with expected paths. Avoid failing these tests when there is a trailing slash at the end of the URL. Signed-off-by: James Valleroy <jvalleroy@mailbox.org> Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
This commit is contained in:
parent
a0b2736746
commit
c7bf1bb46f
@ -21,7 +21,7 @@ config = configparser.ConfigParser()
|
||||
config.read(pathlib.Path(__file__).with_name('config.ini'))
|
||||
|
||||
config['DEFAULT']['url'] = os.environ.get('FREEDOMBOX_URL',
|
||||
config['DEFAULT']['url'])
|
||||
config['DEFAULT']['url']).rstrip('/')
|
||||
config['DEFAULT']['samba_port'] = os.environ.get(
|
||||
'FREEDOMBOX_SAMBA_PORT', config['DEFAULT']['samba_port'])
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user