Skip to content

Commit cf343c9

Browse files
committed
Updated a name of one test since it was duplicated and fixed a failure for the phantomjs test.
1 parent c97353a commit cf343c9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/test_selenium_helpers.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -65,16 +65,16 @@ def test_firefox_browser_valid(self, mock_firefox):
6565
sh.create_driver(browserName="firefox", headless=True)
6666
self.assertTrue(mock_firefox.called)
6767

68-
@patch("selenium.webdriver.PhantomJS", autospec=True)
68+
@patch("selenium.webdriver.PhantomJS")
6969
def test_phantomjs_browser_valid(self, mock_phantomjs):
7070
mock_driver = Mock(spec=mock_phantomjs)
7171
mock_phantomjs.return_value = mock_driver
7272
sh = selenium_helpers.SeleniumHelpers()
7373
sh.create_driver(browserName="phantomjs")
74-
mock_phantomjs.assert_called_once_with()
74+
self.assertTrue(mock_phantomjs.called)
7575

7676
@patch("selenium.webdriver.PhantomJS", autospec=True)
77-
def test_phantomjs_browser_valid(self, mock_phantomjs):
77+
def test_phantomjs_browser_binary_valid(self, mock_phantomjs):
7878
mock_driver = Mock(spec=mock_phantomjs)
7979
mock_phantomjs.return_value = mock_driver
8080
sh = selenium_helpers.SeleniumHelpers()

0 commit comments

Comments
 (0)