From 9c1d27501a0359c6bab12dc1d89d4b5154bb9cde Mon Sep 17 00:00:00 2001 From: The Magician Date: Thu, 19 Oct 2023 11:42:14 +0100 Subject: [PATCH] Add unit tests --- test_jardin.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 test_jardin.py diff --git a/test_jardin.py b/test_jardin.py new file mode 100644 index 0000000..0c6c8bf --- /dev/null +++ b/test_jardin.py @@ -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() + +