From a110c200e86d2325af07167531fac0f61d9681a0 Mon Sep 17 00:00:00 2001 From: Joris Guyonvarch Date: Fri, 26 Dec 2025 18:41:26 +0100 Subject: Switch to GUI to manage the library Allow to regroup the CLI and the view into one unique tool. --- cli/new/test_format.py | 25 ------------------------- 1 file changed, 25 deletions(-) delete mode 100644 cli/new/test_format.py (limited to 'cli/new/test_format.py') diff --git a/cli/new/test_format.py b/cli/new/test_format.py deleted file mode 100644 index d6269d0..0000000 --- a/cli/new/test_format.py +++ /dev/null @@ -1,25 +0,0 @@ -import cli.new.format as format - -def test_list(): - assert format.list([]) == '[]' - assert format.list(['a', 'b', 'c']) == '["a", "b", "c"]' - -def test_unaccent(): - assert format.unaccent('AuieTsrn') == 'AuieTsrn' - assert format.unaccent('âàéèêëîïôù') == 'aaeeeeiiou' - assert format.unaccent('ÂÀÉÈÊËÎÏÔÙ') == 'AAEEEEIIOU' - -def test_path_part(): - assert format.path_part('L’Homme à la béquille') == 'l-homme-a-la-bequille' - -def test_extension(): - assert format.extension('https://website.de/file.webp') == '.webp' - assert format.extension('/home/toto/extension-test/auie.notepad') == '.notepad' - -def test_cleaneup_quotes(): - assert format.cleanup_double_quotes('Bonjour, "ceci" où “cela”.', 'fr') == 'Bonjour, «ceci» où “cela”.' - assert format.cleanup_double_quotes('Hello, "this" or «that».', 'en') == 'Hello, “this” or «that».' - -def test_cleaneup_text(): - assert format.cleanup_text('l\'"est": ici... Là? OK! Yes !', 'fr') == 'l’« est » : ici… Là ? OK ! Yes !' - assert format.cleanup_text('Is it "ok" or «not»?', 'en') == 'Is it “ok” or “not”?' -- cgit v1.2.3