This repository has been archived by the owner on Apr 29, 2024. It is now read-only.
forked from reverbc/pylint-pytest
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
37 additions
and
2 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
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 |
---|---|---|
|
@@ -12,7 +12,7 @@ | |
|
||
setup( | ||
name='pylint-pytest', | ||
version='1.1.1', | ||
version='1.1.2', | ||
author='Reverb Chu', | ||
author_email='[email protected]', | ||
maintainer='Reverb Chu', | ||
|
26 changes: 26 additions & 0 deletions
26
tests/input/useless-pytest-mark-decorator/not_pytest_marker.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 |
---|---|---|
@@ -0,0 +1,26 @@ | ||
import functools | ||
from types import SimpleNamespace | ||
|
||
|
||
def noop(func): | ||
@functools.wraps(func) | ||
def wrapper_noop(*args, **kwargs): | ||
return func(*args, **kwargs) | ||
return wrapper_noop | ||
|
||
|
||
PYTEST = SimpleNamespace( | ||
MARK=SimpleNamespace( | ||
noop=noop | ||
) | ||
) | ||
|
||
|
||
@noop | ||
def test_non_pytest_marker(): | ||
pass | ||
|
||
|
||
@PYTEST.MARK.noop | ||
def test_non_pytest_marker_attr(): | ||
pass |
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