admin: show the URL to configure in hobo (bis)
gitea/ants-hub/pipeline/head This commit looks good Details

Fix tests.
This commit is contained in:
Benjamin Dauvergne 2023-06-14 09:46:43 +02:00
parent f09f0b1ef7
commit f3e91b384a
1 changed files with 13 additions and 3 deletions

View File

@ -50,9 +50,19 @@ class TestLogged:
resp.form.set('notes', 'Penser à facturer.')
resp = resp.form.submit('_save').follow()
assert table_text(resp.pyquery('#result_list')) == [
['', 'Nom', 'API key', 'Création', 'Dernière mise à jour'],
['', 'Plateforme X', '01a5…', '3 avril 2023 12:14', '3 avril 2023 19:57'],
['', 'Plateforme Y', 'aaaa…', '12 avril 2023 12:00', '12 avril 2023 12:00'],
['', 'Nom', 'SETTING_CHRONO_ANTS_HUB_URL', 'Dernière mise à jour'],
[
'',
'Plateforme X',
'https://01a549058c1143ed98848ab79403ff99:@ants-hub.entrouvert.org/api/chrono/',
'3 avril 2023 19:57',
],
[
'',
'Plateforme Y',
'https://aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa:@ants-hub.entrouvert.org/api/chrono/',
'12 avril 2023 12:00',
],
]
resp = resp.click('Plateforme Y', index=0)
assert f'http://{"a" * 32}:@testserver/api/chrono/' in resp