From 8a5c4b5cedd864b9266f76964493185cfcc8cc01 Mon Sep 17 00:00:00 2001 From: Place Jean-Marie Date: Sat, 11 Dec 2021 17:05:38 +0100 Subject: [PATCH] mise a jour tests + images de test --- app/scodoc/sco_config_form.py | 4 ++-- tests/ressources/test_logos/logo_A.jpg | Bin 3755 -> 3767 bytes tests/ressources/test_logos/logo_A1.jpg | Bin 3954 -> 3969 bytes tests/ressources/test_logos/logo_C.jpg | Bin 3071 -> 3084 bytes tests/ressources/test_logos/logo_D.png | Bin 21297 -> 21393 bytes tests/ressources/test_logos/logo_E.jpg | Bin 2938 -> 2948 bytes .../ressources/test_logos/logos_1/logo_A.jpg | Bin 3218 -> 3234 bytes .../ressources/test_logos/logos_1/logo_B.jpg | Bin 3061 -> 3073 bytes .../ressources/test_logos/logos_2/logo_A.jpg | Bin 3241 -> 3260 bytes .../ressources/test_logos/logos_2/logo_A1.jpg | Bin 3501 -> 3519 bytes tests/unit/test_logos.py | 6 +++--- 11 files changed, 5 insertions(+), 5 deletions(-) diff --git a/app/scodoc/sco_config_form.py b/app/scodoc/sco_config_form.py index d5ee87a9d1..f7ff47d72d 100644 --- a/app/scodoc/sco_config_form.py +++ b/app/scodoc/sco_config_form.py @@ -126,7 +126,7 @@ class AddLogoForm(FlaskForm): validators.Length( max=20, message="Un nom ne doit pas dépasser 20 caractères" ), - validators.required("Nom de logo requis (alphanumériques ou '-')"), + validators.DataRequired("Nom de logo requis (alphanumériques ou '-')"), ], ) upload = FileField( @@ -136,7 +136,7 @@ class AddLogoForm(FlaskForm): scu.LOGOS_IMAGES_ALLOWED_TYPES, f"n'accepte que les fichiers image {', '.join(scu.LOGOS_IMAGES_ALLOWED_TYPES)}", ), - validators.required("Fichier image manquant"), + validators.DataRequired("Fichier image manquant"), ], ) do_insert = SubmitField("ajouter une image") diff --git a/tests/ressources/test_logos/logo_A.jpg b/tests/ressources/test_logos/logo_A.jpg index 7770372c7fe210abc450119be75920133a5eba98..1da64b66b645288b1ad96255f2f2293e4468a2f3 100644 GIT binary patch delta 84 zcmZ22yIppICL`}eO>1^uUI`;b8O4c(S`!;MHqPc|WaOQ^jM1Bsck@Tak8D8d5l075 hY;zWu07$Be`vVJaMH27k93B-Ae**6cAZfu@3;@{t7Zd;h delta 64 zcmV-G0KfmY9jhIXDUm8W1sF0R93hc$Es=l)v7QS7ld1trv-Sb;2D9i0hyk;43J?L4 Wf(!5hcw)153?u=Qn+>RwL=JP&z!t9n diff --git a/tests/ressources/test_logos/logo_A1.jpg b/tests/ressources/test_logos/logo_A1.jpg index e645ef63d2a340711d54626328df0b72b5d186d8..66ecf45f2b80ecbb56657586b506613fd1d9dcca 100644 GIT binary patch delta 127 zcmew)*C;jKrPShj}M=^1TEACk!gE delta 104 zcmV-u0GI!PAMzfMDUm8W1sF0R93hc$Es=l)v7VO!vo-=z0<(w&KLNAI1-t>Xg$E@8 zv#SV80<-rD1Ok)%3{(h~sH>)D{{Zl_S`8rq8e_6%JPvBLo1DJ zUTdThWTJ)+To(y73t!7D)2zTG%_)SUDE}@_ZDa%BL4x_8~zLHxN{F3qgt-3J!2p;0E^%*u|5A<2(b% z=EFN3$``aWqmBC=Mfj|#NlPR&6%_^}~(c)^LMVY3iel;JpM zKT?VRi6FwsJcP#9=N@IAb(fYW)LTS-t3xAiJEnqH&m(F+N(%@5qw&DyXjqtPiMas^ zR14siYD9$IAqnSie2?3k{N`m5$uF}+gJor{h;qf&LWwD^0;ag)lz9EE_>*87c@!)q zn?Y~&Ij}^%AVG7A-0jg@dHKhxYj6J>JGlL_q3Xb|{asR5gs7r~i%>R|-~cNUd%zG) z2K2q6vEjai_669k&5$EIv)a$a2}0?@ChP2I;dmkyp}y94sd?a|u{d}>7Ev7CJ*aKc zJqDHfPH;va2JYx7us$glTujpNP}-9R!PEP@A(4CQcipdGVsaHsY)fv(6Vp5r!?>X>}eIUIz(HuYw%ZAj*|Ef9aZ-X delta 546 zcmV+-0^R+Qrvb610SbvwPDctF3IG5Akqqv!`@sUUy#u-dlXwMHv(5$S0+YB1Ewknb z!~qo?R4moXs3IQOF_Hs#u%<%e$gLC5v%v~k1CtvLB9lH2u#@i&Hj^d~ACpE8T$7^@ zCzHz$GL!xfypy{S9h2D*MUx*99kV?V5&^SN5zCtFBg*sFg%k)FwBz?F}ah=F?W+g zGToCQGr|?W91Q$5tl-SCfA>E0e1> znv+I1VUwsg-5S^;Q}M%nRaQHGhJXLW2l1(od<5VA`8GXclc6|jlMFenle#&qlV>_g zv$8so0h2^Lqm$@7N*+l0T80*p^j4EKzl{OA-yP@lHjwSMUMlMFG)p{bxEGH6iTrHv&Kt50h0zzD6=n3 kg8{R%P96de8iC?W1^uUI`;b8O4c(S`!;MCeB{R$h+B-QI-)%r7>*-Q8FwOfYjtQ ztU8*!8mslT=Qv58mtEyQ^V|OHAN9UJ&ffuv?sLg>jV#^gn=&ij?D$>Y$^TfN1NA&* g+YKZau-gL3yX;Xw!^}B&n1GZs7bB3G?84&*03?$w9{>OV delta 95 zcmV-l0HFV(8Il>0DUm8W1sF0R93hc$Es=l)k)E!zO#vMNvugsj0ka|mkO7mk1uT=` z1r-q}t1iAoX+>FezD;DBUpB|xlL!Xqlkf(+ldK0llj;XrvqcCD0<%&I0Rod$3{EbG BA*lcW diff --git a/tests/ressources/test_logos/logos_1/logo_B.jpg b/tests/ressources/test_logos/logos_1/logo_B.jpg index 2428dc4521df51b21fd3279a7dbcf4edf90dbdd9..7c1708f15a85d104683f1677327619413a634af8 100644 GIT binary patch delta 86 zcmew=-Y79alaY6#rZqb+uY{4JjN-&Xt%(gB8)q{zGxAQJ!yL-UyZIw?IU|tDV08sj ilh?A{2a-MPWBqS delta 64 zcmV-G0Kfl%81)yBDUm8W1sF0R93hc$Es=l)v7P|~lb{1tv-Sgb0kdueMFEqv2H%sE W2R4(-2iB9K2zs*}36}zswF^wqoEJy{ diff --git a/tests/ressources/test_logos/logos_2/logo_A.jpg b/tests/ressources/test_logos/logos_2/logo_A.jpg index 28d2a9c14a720169ca65555edd038e18292699c4..130269a63e74322b6f8fa1b1c37cf2178e08d78b 100644 GIT binary patch delta 141 zcmZ1}xkqw>CL`}eO>1^uUI`;b8O4c(S`!;MCeGf#$UE7a@idSWWAb3+-5kesfDuT^ zu}ooP?0VW{D#3{=t%v;dI7VUqMB`o>b;msfP-n%jL mPB!2=095;dOAkoOaR&j(0`3@2-sA%UCC5}2@lL+XeGLHkFe&)} delta 111 zcmV-#0FeK@8L1hNDUm8W1sF0R93hc$Es=l)k)E)VPXWu58v;nPWCFkevn2$S0R;a5 z6xNf!1#6Ql2GO(q1`q93NDi_3sRGT R3tR_dzz}rCB%+h%3)Yk&DTDw3 diff --git a/tests/ressources/test_logos/logos_2/logo_A1.jpg b/tests/ressources/test_logos/logos_2/logo_A1.jpg index 5bdf7500cc42ae84339f70eb11df4ad8731df05d..ee9da2ec48e3beb3c74b53e16f5cbc17185f7a40 100644 GIT binary patch delta 165 zcmZ20y1^uUI`;b8O4c(S`!;MCeB{R$UE7SF%d|vVmt&SbC|9GNeAXx z!n|(}?%iQNo$cf2il2LG?%Cz*@os+2ypRzn-NWhuB(JdU2a=Q7E&$17_6Ll-o1Hl( zumCxidFu6e3rtVkefD>Y;3ZDaRNZ+}Q_Vj=T_3*h!+!=*;oaGBJyuP;5B7@+Z_bqC L0Wv4o@)`gDskl81 delta 136 zcmV;30C)et8?76VDUm8W1sF0R93hc$Es=l)k)E!TO#xw(uK~i7ast$oM+2G>?ZLgc zHcH}mDMSHAH702LFvYhH{xg5bXu6SHX^3_607j}0)