From a50cf906a6ea4836ba3388328df3d49033923729 Mon Sep 17 00:00:00 2001 From: Eeshan Garg Date: Mon, 24 Jul 2017 22:16:20 -0230 Subject: [PATCH] bots/xkcd: Fix wrong package name passed to mock.patch. --- zulip_bots/zulip_bots/bots/xkcd/test_xkcd.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zulip_bots/zulip_bots/bots/xkcd/test_xkcd.py b/zulip_bots/zulip_bots/bots/xkcd/test_xkcd.py index 72b9547..310a8f5 100755 --- a/zulip_bots/zulip_bots/bots/xkcd/test_xkcd.py +++ b/zulip_bots/zulip_bots/bots/xkcd/test_xkcd.py @@ -39,7 +39,7 @@ class TestXkcdBot(BotTestCase): "notation. (??)](https://imgs.xkcd.com/comics/chess_notation.png)") with self.mock_http_conversation('test_random'): # Mock randint function. - with patch('bots.xkcd.xkcd.random.randint') as randint: + with patch('zulip_bots.bots.xkcd.xkcd.random.randint') as randint: mock_rand_value = mock.MagicMock() mock_rand_value.return_value = 1800 randint.return_value = mock_rand_value.return_value