Commit 78c7aeaa authored by lanjiali's avatar lanjiali

学生预警

校区预警 学生收入 校区收入
parent 48a25d80
...@@ -19,11 +19,12 @@ ...@@ -19,11 +19,12 @@
<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 afterPath="$PROJECT_DIR$/script/ji_yun_ying_pc/lanjiali_report/test_student_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/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" />
<change beforePath="$PROJECT_DIR$/script/ji_yun_ying_pc/lanjiali_report/test_student_income.py" beforeDir="false" afterPath="$PROJECT_DIR$/script/ji_yun_ying_pc/lanjiali_report/test_student_income.py" afterDir="false" />
</list> </list>
<option name="SHOW_DIALOG" value="false" /> <option name="SHOW_DIALOG" value="false" />
<option name="HIGHLIGHT_CONFLICTS" value="true" /> <option name="HIGHLIGHT_CONFLICTS" value="true" />
...@@ -290,7 +291,14 @@ ...@@ -290,7 +291,14 @@
<option name="project" value="LOCAL" /> <option name="project" value="LOCAL" />
<updated>1620468346117</updated> <updated>1620468346117</updated>
</task> </task>
<option name="localTasksCounter" value="15" /> <task id="LOCAL-00015" summary="校区费用预警">
<created>1620640021569</created>
<option name="number" value="00015" />
<option name="presentableId" value="LOCAL-00015" />
<option name="project" value="LOCAL" />
<updated>1620640021569</updated>
</task>
<option name="localTasksCounter" value="16" />
<servers /> <servers />
</component> </component>
<component name="Vcs.Log.Tabs.Properties"> <component name="Vcs.Log.Tabs.Properties">
...@@ -317,6 +325,7 @@ ...@@ -317,6 +325,7 @@
<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>
</project> </project>
\ No newline at end of file
...@@ -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_student_income.py",
"--alluredir", "./report/xml", "--alluredir", "./report/xml",
"--host", "http://192.168.32.31", "--host", "http://192.168.32.31",
"--account", "b", "--account", "b",
......
...@@ -433,8 +433,3 @@ class Test_select_student_expense: ...@@ -433,8 +433,3 @@ class Test_select_student_expense:
res_page2 = report_finance_student_expense_warning_post(header=jyy_header,body=data2) res_page2 = report_finance_student_expense_warning_post(header=jyy_header,body=data2)
assert res_page2['msg'] == '成功' assert res_page2['msg'] == '成功'
assert res_page2['data']['pageNum'] == 2 assert res_page2['data']['pageNum'] == 2
...@@ -223,6 +223,28 @@ class Test_student_income(): ...@@ -223,6 +223,28 @@ class Test_student_income():
result = public_asserts.assert_res_field_equal_value(school_area_list,schoolarea_name) result = public_asserts.assert_res_field_equal_value(school_area_list,schoolarea_name)
pytest.assume(result) pytest.assume(result)
@allure.story("学员收入-列表数据汇总")
@pytest.mark.parametrize("student_statu,class_type,grade,subject,term,year",
[
([0],"极趣班",grades[2],subjects[3],select_term(),select_year())
])
def test_total_studentincome(self,student_statu,class_type,grade,subject,term,year):
data = {
"keyword": "",
"studentStatus": student_statu,
"classType": [class_type],
"grade": [grade],
"subject": [subject],
"termStr": [term],
"year": [year],
"pageSize": 10,
"pageNum": 1,
"schoolArea": random.sample(school_areas,1)
}
res = report_finance_student_income_list_post(header=jyy_header, body=data)
print(res)
assert res['msg'] == '成功'
assert res['code'] == 0
......
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