Skip to content

Commit

Permalink
Merge pull request #174 from ticosax/exempt-B018
Browse files Browse the repository at this point in the history
Silent these warnings
  • Loading branch information
ticosax authored Apr 4, 2023
2 parents ecf4c7f + a6f9c72 commit d29ed3f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/test_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def test_by_is_set_when_passed_into_transition(article, user):
log = StateLog.objects.all()[0]
assert user == log.by
with pytest.raises(AttributeError):
article.__django_fsm_log_attr_by
article.__django_fsm_log_attr_by # noqa: B018


def test_by_is_none_when_not_set_in_transition(article):
Expand All @@ -63,7 +63,7 @@ def test_description_is_set_when_passed_into_transition(article):
log = StateLog.objects.all()[0]
assert description == log.description
with pytest.raises(AttributeError):
article.__django_fsm_log_attr_description
article.__django_fsm_log_attr_description # noqa: B018


def test_description_is_none_when_not_set_in_transition(article):
Expand All @@ -80,7 +80,7 @@ def test_description_can_be_mutated_by_the_transition(article):
log = StateLog.objects.all()[0]
assert description == log.description
with pytest.raises(AttributeError):
article.__django_fsm_log_attr_description
article.__django_fsm_log_attr_description # noqa: B018


def test_default_description(article):
Expand Down

0 comments on commit d29ed3f

Please sign in to comment.