Add unit tests

This commit is contained in:
The Magician 2023-10-19 11:42:14 +01:00
parent 9f582e568f
commit 9c1d27501a
1 changed files with 13 additions and 0 deletions

13
test_jardin.py Normal file
View File

@ -0,0 +1,13 @@
import unittest
from unittest import mock
import jardin
class TestJardin(unittest.TestCase):
@mock.patch("webdriver.Firefox")
def test_initialize_webdriver(self, mockFirefox):
jardin.initialize_webdriver()
mockFirefox.assert_called_once()