Projet

Général

Profil

0001-misc-move-backoffice-pages-tests.patch

Lauréline Guérin, 15 octobre 2020 17:06

Télécharger (1,21 ko)

Voir les différences:

Subject: [PATCH 1/4] misc: move backoffice pages tests

 .../{test_backoffice_pages.py => backoffice_pages/test_all.py}  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
 rename tests/{test_backoffice_pages.py => backoffice_pages/test_all.py} (99%)
tests/test_backoffice_pages.py → tests/backoffice_pages/test_all.py
636 636
    formdef.store()
637 637

  
638 638
    upload = PicklableUpload('test.jpeg', 'image/jpeg')
639
    jpg = open(os.path.join(os.path.dirname(__file__), 'image-with-gps-data.jpeg'), 'rb').read()
639
    jpg = open(os.path.join(os.path.dirname(__file__), '..', 'image-with-gps-data.jpeg'), 'rb').read()
640 640
    upload.receive([jpg])
641 641
    for formdata in formdef.data_class().select(lambda x: x.status == 'wf-new'):
642 642
        formdata.data['4'] = upload
643
-