-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support of critical smoke tests with @pytest.mark.smoke marker an…
…d INI option (#33) This also includes the following breaking changes: - Change pytest_smoke_exclude hook to take precedence over any other options - Change the hook name pytest_smoke_always_run to pytest_smoke_include
- Loading branch information
Showing
9 changed files
with
381 additions
and
70 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import sys | ||
from enum import Enum | ||
|
||
import pytest | ||
|
||
if sys.version_info < (3, 11): | ||
|
||
class StrEnum(str, Enum): | ||
def _generate_next_value_(name, start, count, last_values) -> str: | ||
return name.lower() | ||
|
||
def __str__(self) -> str: | ||
return str(self.value) | ||
else: | ||
from enum import StrEnum # noqa: F401 | ||
|
||
|
||
if pytest.version_tuple < (7, 4): | ||
from collections.abc import Mapping | ||
from typing import NamedTuple, Union | ||
|
||
class TestShortLogReport(NamedTuple): | ||
category: str | ||
letter: str | ||
word: Union[str, tuple[str, Mapping[str, bool]]] | ||
else: | ||
from pytest import TestShortLogReport # noqa: F401 |
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
Oops, something went wrong.