-
-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* 优化部分文件细节处理 * 修复typing检测 * 细节抛光 * 修复格式化
- Loading branch information
Showing
8 changed files
with
28 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 4 additions & 8 deletions
12
httpfpt/testcases/test_project/test_api_testcase_template.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,17 @@ | ||
#!/usr/bin/env python3 | ||
# -*- coding: utf-8 -*- | ||
import allure | ||
import pytest | ||
|
||
from httpfpt.common.send_request import send_request | ||
from httpfpt.utils.request.case_data_parse import get_testcase_data | ||
|
||
allure_data, ddt_data, ids = get_testcase_data(filename='api_testcase_template.yaml') | ||
ddt_data, ids = get_testcase_data(filename='api_testcase_template.yaml') | ||
|
||
|
||
@allure.epic(allure_data['epic']) | ||
@allure.feature(allure_data['feature']) | ||
class TestApiTestcaseTemplate: | ||
"""ApicaseTemplate""" | ||
|
||
@allure.story(allure_data['story']) | ||
@pytest.mark.parametrize('data', ddt_data, ids=ids) | ||
def test_api_testcase_template(self, data): | ||
@pytest.mark.parametrize('case_data', ddt_data, ids=ids) | ||
def test_api_testcase_template(self, case_data): | ||
"""api_testcase_template""" | ||
send_request.send_request(data) | ||
send_request.send_request(case_data) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,17 @@ | ||
#!/usr/bin/env python3 | ||
# -*- coding: utf-8 -*- | ||
import allure | ||
import pytest | ||
|
||
from httpfpt.common.send_request import send_request | ||
from httpfpt.utils.request.case_data_parse import get_testcase_data | ||
|
||
allure_data, ddt_data, ids = get_testcase_data(filename='only_skip.yml') | ||
ddt_data, ids = get_testcase_data(filename='only_skip.yml') | ||
|
||
|
||
@allure.epic(allure_data['epic']) | ||
@allure.feature(allure_data['feature']) | ||
class TestOnlySkip: | ||
"""OnlySkip""" | ||
|
||
@allure.story(allure_data['story']) | ||
@pytest.mark.parametrize('data', ddt_data, ids=ids) | ||
def test_only_skip(self, data): | ||
@pytest.mark.parametrize('case_data', ddt_data, ids=ids) | ||
def test_only_skip(self, case_data): | ||
"""only_skip""" | ||
send_request.send_request(data) | ||
send_request.send_request(case_data) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,17 @@ | ||
#!/usr/bin/env python3 | ||
# -*- coding: utf-8 -*- | ||
import allure | ||
import pytest | ||
|
||
from httpfpt.common.send_request import send_request | ||
from httpfpt.utils.request.case_data_parse import get_testcase_data | ||
|
||
allure_data, ddt_data, ids = get_testcase_data(filename='upload_file.json') | ||
ddt_data, ids = get_testcase_data(filename='upload_file.json') | ||
|
||
|
||
@allure.epic(allure_data['epic']) | ||
@allure.feature(allure_data['feature']) | ||
class TestUploadFile: | ||
"""UploadFile""" | ||
|
||
@allure.story(allure_data['story']) | ||
@pytest.mark.parametrize('data', ddt_data, ids=ids) | ||
def test_upload_file(self, data): | ||
@pytest.mark.parametrize('case_data', ddt_data, ids=ids) | ||
def test_upload_file(self, case_data): | ||
"""upload_file""" | ||
send_request.send_request(data) | ||
send_request.send_request(case_data) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters