Add unit tests
This commit is contained in:
parent
9f582e568f
commit
9c1d27501a
|
@ -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()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue