1414from submit_ce .ui .controllers .new import review
1515
1616
17- def test_review_files_get_warning_via_http (app , authorized_client , sub_files ,
17+ def test_review_files_get_warning_via_http (app , authorized_client , sub_files_tex ,
1818 mocker ):
1919 """End-to-end: GET /<id>/review_files triggers flash_warning when
2020 _load_or_create_preflight yields no preflight data."""
2121 mocker .patch .object (review , '_load_or_create_preflight' ,
2222 return_value = (None , None ))
2323 mock_flash = mocker .patch .object (review .alerts , 'flash_warning' )
2424
25- url = f"/{ sub_files .submission_id } /review_files"
25+ url = f"/{ sub_files_tex .submission_id } /review_files"
2626 resp = authorized_client .get (url )
2727
2828 assert resp .status_code == status .OK
@@ -65,10 +65,10 @@ def _get_csrf(authorized_client, url, mocker):
6565
6666
6767def test_review_files_post_with_changes_redirects_to_parent (
68- app , authorized_client , sub_files , mocker ):
68+ app , authorized_client , sub_files_tex , mocker ):
6969 """End-to-end POST: when _update_preflight reports changes, the controller
7070 marks STAGE_PARENT and the flow redirects (303 SEE_OTHER)."""
71- url = f"/{ sub_files .submission_id } /review_files"
71+ url = f"/{ sub_files_tex .submission_id } /review_files"
7272 csrf = _get_csrf (authorized_client , url , mocker )
7373
7474 mock_update = mocker .patch .object (review , '_update_preflight' ,
@@ -83,10 +83,10 @@ def test_review_files_post_with_changes_redirects_to_parent(
8383
8484
8585def test_review_files_post_no_changes_no_preflight_flashes (
86- app , authorized_client , sub_files , mocker ):
86+ app , authorized_client , sub_files_tex , mocker ):
8787 """End-to-end POST: when there are no changes but preflight is still
8888 unavailable, the controller flashes a warning and stays on the stage."""
89- url = f"/{ sub_files .submission_id } /review_files"
89+ url = f"/{ sub_files_tex .submission_id } /review_files"
9090 csrf = _get_csrf (authorized_client , url , mocker )
9191
9292 mocker .patch .object (review , '_update_preflight' , return_value = False )
@@ -105,10 +105,10 @@ def test_review_files_post_no_changes_no_preflight_flashes(
105105
106106
107107def test_review_files_post_no_changes_stores_zzrm_and_advances (
108- app , authorized_client , sub_files , mocker ):
108+ app , authorized_client , sub_files_tex , mocker ):
109109 """End-to-end POST: when there are no changes and preflight is present,
110110 the controller stores the merged zzrm and advances to the next stage."""
111- url = f"/{ sub_files .submission_id } /review_files"
111+ url = f"/{ sub_files_tex .submission_id } /review_files"
112112 csrf = _get_csrf (authorized_client , url , mocker )
113113
114114 mocker .patch .object (review , '_update_preflight' , return_value = False )
@@ -131,7 +131,7 @@ def test_review_files_post_no_changes_stores_zzrm_and_advances(
131131 fake_zzrm .from_dict .assert_called_once_with ({'sources' : []})
132132 fake_zzrm .update_from_preflight .assert_called_once ()
133133 mock_store .store_zzrm .assert_called_once_with (
134- str (sub_files .submission_id ), {'merged' : True }
134+ str (sub_files_tex .submission_id ), {'merged' : True }
135135 )
136136
137137
0 commit comments