-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Send results using the new endpoint and format
- Loading branch information
Showing
4 changed files
with
59 additions
and
5 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,37 @@ | ||
from qaseio.pytest import qase | ||
|
||
import time | ||
|
||
|
||
@qase.step("Capitalize step") | ||
def capital_case(x): | ||
return x.capitalize() | ||
|
||
|
||
@qase.id(1) | ||
@qase.title('Test should pass') | ||
@qase.fields( | ||
("severity", "critical"), | ||
("priority", "hight"), | ||
("layer", "unit"), | ||
("description", "Always passes"), | ||
("description", "*Precondition 1*. None."), | ||
) | ||
def test_capital_case(): | ||
with qase.step("First step"): | ||
time.sleep(0) | ||
assert capital_case('semaphor') == 'Semaphor' | ||
|
||
|
||
@qase.id(2) | ||
@qase.title("Test should fail") | ||
@qase.fields( | ||
("severity", "critical"), | ||
("priority", "hight"), | ||
("layer", "unit"), | ||
("description", "Always fails"), | ||
("description", "*Precondition 1*. None."), | ||
) | ||
def test_capital_case2(): | ||
assert capital_case('semaphor') == 'semaphor' | ||
with qase.step("Failed step"): | ||
assert capital_case('semaphor') == 'semaphor' |
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,5 +1,5 @@ | ||
attrs==21.4.0 | ||
cattrs==1.1.2 | ||
pytest~=7.2.2 | ||
qase-python-commons>=2.0.0,<2.1.0 | ||
qase-python-commons>=2.1.0 | ||
filelock==3.10.7 |
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