Projet

Général

Profil

0001-change-app-settings-module-structure-22037.patch

Josué Kouka, 22 février 2018 17:39

Télécharger (1,8 ko)

Voir les différences:

Subject: [PATCH] change app settings module structure (#22037)

 mandayejs/{applications.py => applications/__init__.py} | 2 +-
 mandayejs/{ => applications}/views.py                   | 0
 tests/test_archimed.py                                  | 2 +-
 3 files changed, 2 insertions(+), 2 deletions(-)
 rename mandayejs/{applications.py => applications/__init__.py} (99%)
 rename mandayejs/{ => applications}/views.py (100%)
mandayejs/applications.py → mandayejs/applications/__init__.py
196 196
        '',
197 197
        url(
198 198
            r'account/(?P<username>\w+)/$',
199
            'mandayejs.views.archimed_account_details',
199
            'mandayejs.applications.views.archimed_account_details',
200 200
            name='archimed-account-details'),
201 201
    )
202 202

  
tests/test_archimed.py
29 29
]
30 30

  
31 31

  
32
@mock.patch('mandayejs.views.requests.Session.post')
32
@mock.patch('mandayejs.applications.views.requests.Session.post')
33 33
@mock.patch('mandayejs.applications.get_app_settings')
34 34
def test_archimed_ws(mocked_get_app_settings, mocked_requests_post):
35 35
    mocked_get_app_settings.return_value = Archimed
36
-