Skip to content

Commit 60634c4

Browse files
Jorge Fernandez HernandezJorge Fernandez Hernandez
authored andcommitted
EUCLIDSWRQ-250 new method for the image Access Protocol (SIAP)
1 parent b320308 commit 60634c4

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

astroquery/esa/euclid/tests/test_euclidtap.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1448,10 +1448,10 @@ def test_login(mock_login):
14481448
tapplus = TapPlus(url="https://test:1111/tap", connhandler=conn_handler)
14491449
tap = EuclidClass(tap_plus_conn_handler=conn_handler, datalink_handler=tapplus, show_server_messages=False)
14501450
tap.login(user="user", password="password")
1451-
assert (mock_login.call_count == 3)
1451+
assert (mock_login.call_count == 4)
14521452
mock_login.side_effect = HTTPError("Login error")
14531453
tap.login(user="user", password="password")
1454-
assert (mock_login.call_count == 4)
1454+
assert (mock_login.call_count == 5)
14551455

14561456

14571457
@patch.object(TapPlus, 'login_gui')
@@ -1461,7 +1461,7 @@ def test_login_gui(mock_login_gui, mock_login):
14611461
tapplus = TapPlus(url="http://test:1111/tap", connhandler=conn_handler)
14621462
tap = EuclidClass(tap_plus_conn_handler=conn_handler, datalink_handler=tapplus, show_server_messages=False)
14631463
tap.login_gui()
1464-
assert (mock_login_gui.call_count == 2)
1464+
assert (mock_login_gui.call_count == 3)
14651465
mock_login_gui.side_effect = HTTPError("Login error")
14661466
tap.login(user="user", password="password")
14671467
assert (mock_login.call_count == 1)
@@ -1473,10 +1473,10 @@ def test_logout(mock_logout):
14731473
tapplus = TapPlus(url="http://test:1111/tap", connhandler=conn_handler)
14741474
tap = EuclidClass(tap_plus_conn_handler=conn_handler, datalink_handler=tapplus, show_server_messages=False)
14751475
tap.logout()
1476-
assert (mock_logout.call_count == 3)
1476+
assert (mock_logout.call_count == 4)
14771477
mock_logout.side_effect = HTTPError("Login error")
14781478
tap.logout()
1479-
assert (mock_logout.call_count == 4)
1479+
assert (mock_logout.call_count == 5)
14801480

14811481

14821482
def test_get_datalinks(monkeypatch):

0 commit comments

Comments
 (0)