Skip to content

Commit

Permalink
Fix test initializing drivers multiple times
Browse files Browse the repository at this point in the history
  • Loading branch information
unode committed Aug 19, 2022
1 parent 92f9381 commit 61dc19d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/unit_tests/function_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ def fake_reply(message, text):

f = listen_to("", allowed_channels=["off-topic"])(wrapped)
f.plugin = ExamplePlugin()
f.plugin.initialize(Driver(), PluginManager([f.plugin]), Settings())
f.plugin.initialize(driver, PluginManager([f.plugin]), Settings())

# This is fine, the names are not caps sensitive
f(create_message(channel_name="off-topic"))
Expand All @@ -232,7 +232,7 @@ def fake_reply(message, text):
wrapped
)
f.plugin = ExamplePlugin()
f.plugin.initialize(Driver(), PluginManager([f.plugin]), Settings())
f.plugin.initialize(driver, PluginManager([f.plugin]), Settings())

# This is fine, the names are not caps sensitive
f(create_message(channel_name="off-topic"))
Expand Down

0 comments on commit 61dc19d

Please sign in to comment.