File tree Expand file tree Collapse file tree 3 files changed +7
-0
lines changed
kernelCI_app/tests/unitTests Expand file tree Collapse file tree 3 files changed +7
-0
lines changed Original file line number Diff line number Diff line change
1
+ import pytest
1
2
from kernelCI_app .helpers .filters import should_filter_test_issue
2
3
from kernelCI_app .constants .general import UNCATEGORIZED_STRING
3
4
4
5
6
+ @pytest .mark .unit
5
7
class TestShouldFilterTestIssue :
6
8
def test_no_issue_filters (self ):
7
9
assert not should_filter_test_issue (
Original file line number Diff line number Diff line change
1
+ import pytest
1
2
from kernelCI_app .helpers .issueListing import (
2
3
should_discard_issue_by_category ,
3
4
should_discard_issue_by_culprit ,
6
7
from kernelCI_app .typeModels .issues import CULPRIT_CODE
7
8
8
9
10
+ @pytest .mark .unit
9
11
class TestShouldDiscardIssue :
10
12
def test_discard_by_culprit (self ):
11
13
assert (
Original file line number Diff line number Diff line change @@ -36,6 +36,9 @@ pytest-rerunfailures = "^15.0"
36
36
[tool .pytest .ini_options ]
37
37
DJANGO_SETTINGS_MODULE = " kernelCI.settings"
38
38
addopts = " -n 4 --dist loadscope --reruns 4 -x"
39
+ markers = [
40
+ " unit: marks tests as unit tests (fast, no external dependencies)"
41
+ ]
39
42
40
43
[build-system ]
41
44
requires = [" poetry-core" ]
You can’t perform that action at this time.
0 commit comments