Skip to content

Commit

Permalink
test: change test for ubuntu testing
Browse files Browse the repository at this point in the history
  • Loading branch information
GianmarcoBasile committed Jan 28, 2024
1 parent da49beb commit a5a1dfb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/test_main.py
Original file line number Diff line number Diff line change
@@ -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))

0 comments on commit a5a1dfb

Please sign in to comment.