Navigate directly to login page

This commit is contained in:
The Magician 2023-10-19 21:53:19 +01:00
parent d401dccf02
commit 7c21f445b1
2 changed files with 2 additions and 2 deletions

View File

@ -6,7 +6,7 @@ def initialize_webdriver():
return webdriver.Firefox() return webdriver.Firefox()
def navigate_to_filegarden(browser): def navigate_to_filegarden(browser):
browser.get("https://filegarden.com") browser.get("https://filegarden.com/login")
def main(): def main():
with initialize_webdriver() as browser: with initialize_webdriver() as browser:

View File

@ -16,7 +16,7 @@ class TestJardin(unittest.TestCase):
def test_navigate_to_filegarden(self, mockFirefox): def test_navigate_to_filegarden(self, mockFirefox):
jardin.navigate_to_filegarden(mockFirefox) jardin.navigate_to_filegarden(mockFirefox)
mockFirefox.get.assert_called_once_with("https://filegarden.com") mockFirefox.get.assert_called_once_with("https://filegarden.com/login")
@patch("jardin.initialize_webdriver") @patch("jardin.initialize_webdriver")
@patch("jardin.navigate_to_filegarden") @patch("jardin.navigate_to_filegarden")