Commit d597600f authored by lanjiali's avatar lanjiali

学生费用预警查询-分页

parent d419a76e
...@@ -19,11 +19,9 @@ ...@@ -19,11 +19,9 @@
<select /> <select />
</component> </component>
<component name="ChangeListManager"> <component name="ChangeListManager">
<list default="true" id="54f4d37d-1724-4813-a1e2-24e200088c5f" name="Default Changelist" comment="学生费用预警查询-学生信息对比"> <list default="true" id="54f4d37d-1724-4813-a1e2-24e200088c5f" name="Default Changelist" comment="校区费用预警查询">
<change afterPath="$PROJECT_DIR$/script/ji_yun_ying_pc/lanjiali_report/test_school_expense.py" afterDir="false" />
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" /> <change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/run.py" beforeDir="false" afterPath="$PROJECT_DIR$/run.py" afterDir="false" /> <change beforePath="$PROJECT_DIR$/run.py" beforeDir="false" afterPath="$PROJECT_DIR$/run.py" afterDir="false" />
<change beforePath="$PROJECT_DIR$/script/ji_yun_ying_pc/lanjiali_report/data_config/report_config.py" beforeDir="false" afterPath="$PROJECT_DIR$/script/ji_yun_ying_pc/lanjiali_report/data_config/report_config.py" afterDir="false" />
<change beforePath="$PROJECT_DIR$/script/ji_yun_ying_pc/lanjiali_report/test_demo.py" beforeDir="false" afterPath="$PROJECT_DIR$/script/ji_yun_ying_pc/lanjiali_report/test_demo.py" afterDir="false" /> <change beforePath="$PROJECT_DIR$/script/ji_yun_ying_pc/lanjiali_report/test_demo.py" beforeDir="false" afterPath="$PROJECT_DIR$/script/ji_yun_ying_pc/lanjiali_report/test_demo.py" afterDir="false" />
</list> </list>
<option name="SHOW_DIALOG" value="false" /> <option name="SHOW_DIALOG" value="false" />
...@@ -242,7 +240,14 @@ ...@@ -242,7 +240,14 @@
<option name="project" value="LOCAL" /> <option name="project" value="LOCAL" />
<updated>1619520894653</updated> <updated>1619520894653</updated>
</task> </task>
<option name="localTasksCounter" value="8" /> <task id="LOCAL-00008" summary="校区费用预警查询">
<created>1619609772900</created>
<option name="number" value="00008" />
<option name="presentableId" value="LOCAL-00008" />
<option name="project" value="LOCAL" />
<updated>1619609772900</updated>
</task>
<option name="localTasksCounter" value="9" />
<servers /> <servers />
</component> </component>
<component name="Vcs.Log.Tabs.Properties"> <component name="Vcs.Log.Tabs.Properties">
...@@ -264,7 +269,8 @@ ...@@ -264,7 +269,8 @@
<MESSAGE value="关键字查询" /> <MESSAGE value="关键字查询" />
<MESSAGE value="学生费用预警查询" /> <MESSAGE value="学生费用预警查询" />
<MESSAGE value="学生费用预警查询-学生信息对比" /> <MESSAGE value="学生费用预警查询-学生信息对比" />
<option name="LAST_COMMIT_MESSAGE" value="学生费用预警查询-学生信息对比" /> <MESSAGE value="校区费用预警查询" />
<option name="LAST_COMMIT_MESSAGE" value="校区费用预警查询" />
</component> </component>
<component name="XDebuggerManager"> <component name="XDebuggerManager">
<breakpoint-manager> <breakpoint-manager>
......
...@@ -3,7 +3,7 @@ import os ...@@ -3,7 +3,7 @@ import os
if __name__ == '__main__': if __name__ == '__main__':
run_config = [ run_config = [
"-s", "./script/ji_yun_ying_pc/lanjiali_report/test_school_expense.py", "-s", "./script/ji_yun_ying_pc/lanjiali_report/test_demo.py",
"--alluredir", "./report/xml", "--alluredir", "./report/xml",
"--host", "http://192.168.32.31", "--host", "http://192.168.32.31",
"--account", "b", "--account", "b",
......
...@@ -378,6 +378,37 @@ class Test_select_student_expense: ...@@ -378,6 +378,37 @@ class Test_select_student_expense:
student_name = student_res['data']['studentName'] student_name = student_res['data']['studentName']
assert studentname_list[0] == student_name assert studentname_list[0] == student_name
@allure.step("学生费用预警-分页")
def test_page(self):
data = {
"pageNum": 1,
"pageSize": 10,
"studentStatuses": [1110],
"year": select_year(),
"keyword": '蓝',
"term": select_term(),
"schoolAreaIds": school_areas
}
res = report_finance_student_expense_warning_post(header=jyy_header,body=data)
studentexpense_total = res['data']['total']
if studentexpense_total <= 10:
assert res['data']['pageNum'] ==1
assert res['msg'] == '成功'
else:
data2 = {
"pageNum": 2,
"pageSize": 10,
"studentStatuses": [1110],
"year": select_year(),
"keyword": '蓝',
"term": select_term(),
"schoolAreaIds": school_areas
}
res_page2 = report_finance_student_expense_warning_post(header=jyy_header,body=data2)
assert res_page2['msg'] == '成功'
assert res_page2['data']['pageNum'] == 2
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment