File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ def test_by_is_set_when_passed_into_transition(article, user):
46
46
log = StateLog .objects .all ()[0 ]
47
47
assert user == log .by
48
48
with pytest .raises (AttributeError ):
49
- article .__django_fsm_log_attr_by
49
+ article .__django_fsm_log_attr_by # noqa: B018
50
50
51
51
52
52
def test_by_is_none_when_not_set_in_transition (article ):
@@ -63,7 +63,7 @@ def test_description_is_set_when_passed_into_transition(article):
63
63
log = StateLog .objects .all ()[0 ]
64
64
assert description == log .description
65
65
with pytest .raises (AttributeError ):
66
- article .__django_fsm_log_attr_description
66
+ article .__django_fsm_log_attr_description # noqa: B018
67
67
68
68
69
69
def test_description_is_none_when_not_set_in_transition (article ):
@@ -80,7 +80,7 @@ def test_description_can_be_mutated_by_the_transition(article):
80
80
log = StateLog .objects .all ()[0 ]
81
81
assert description == log .description
82
82
with pytest .raises (AttributeError ):
83
- article .__django_fsm_log_attr_description
83
+ article .__django_fsm_log_attr_description # noqa: B018
84
84
85
85
86
86
def test_default_description (article ):
You can’t perform that action at this time.
0 commit comments