Skip to content

Commit

Permalink
Mock state_machine
Browse files Browse the repository at this point in the history
fix `AttributeError: 'NoneType' object has no attribute 'reporter'`
  • Loading branch information
JokeWaumans committed Sep 10, 2024
1 parent 41dc79c commit 7fae11a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/test_process_options.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def test_with_empty_options(self):
content_offset=0,
block_text='',
state=None,
state_machine=None)
state_machine=Mock())

self.assertNotIn('commalist_arg', fake_node)
self.assertNotIn('string_arg', fake_node)
Expand Down Expand Up @@ -77,7 +77,7 @@ def test_with_existing_options(self):
content_offset=0,
block_text='',
state=None,
state_machine=None)
state_machine=Mock())

self.assertNotIn('commalist_arg', fake_node)
self.assertNotIn('string_arg', fake_node)
Expand All @@ -102,7 +102,7 @@ def test_with_just_one_existing_option(self):
content_offset=0,
block_text='',
state=None,
state_machine=None)
state_machine=Mock())

self.assertNotIn('commalist_arg', fake_node)
self.assertNotIn('string_arg', fake_node)
Expand Down

0 comments on commit 7fae11a

Please sign in to comment.