From a5a1dfbb10c56be26d16fbe26fdcbc9819d09fa9 Mon Sep 17 00:00:00 2001 From: GianmarcoBasile Date: Sun, 28 Jan 2024 18:22:11 +0100 Subject: [PATCH] test: change test for ubuntu testing --- tests/test_main.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/test_main.py b/tests/test_main.py index 2aa73b1..627d15c 100644 --- a/tests/test_main.py +++ b/tests/test_main.py @@ -1,8 +1,11 @@ import unittest +from unittest.mock import patch from main import bot_instance as bot from bot import Bot class TestMain(unittest.TestCase): def test_main(self): + with patch("src.main.API_KEY") as mock_api_key: + mock_api_key.return_value = "test_api_key" self.assertTrue(isinstance(bot, Bot))