Skip to content

Commit

Permalink
[fix] unittests
Browse files Browse the repository at this point in the history
  • Loading branch information
grindsa committed Dec 28, 2024
1 parent 521417c commit 99b6f48
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions test/test_dkb_robo.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def setUp(self):
self.dir_path = os.path.dirname(os.path.realpath(__file__))
self.logger = logging.getLogger('dkb_robo')

@patch('dkb_robo.api.Wrapper.login')
@patch('dkb_robo.authentication.Authentication.login')
@patch('dkb_robo.legacy.Wrapper.login')
def test_001__enter(self, mock_legacy, mock_api):
""" test enter """
Expand All @@ -61,7 +61,7 @@ def test_001__enter(self, mock_legacy, mock_api):
self.assertFalse(mock_legacy.called)
self.assertTrue(mock_api.called)

@patch('dkb_robo.api.Wrapper.login')
@patch('dkb_robo.authentication.Authentication.login')
@patch('dkb_robo.legacy.Wrapper.login')
def test_002__enter(self, mock_legacy, mock_api):
""" test enter """
Expand All @@ -72,7 +72,7 @@ def test_002__enter(self, mock_legacy, mock_api):
self.assertFalse(mock_legacy.called)
self.assertTrue(mock_api.called)

@patch('dkb_robo.api.Wrapper.login')
@patch('dkb_robo.authentication.Authentication.login')
@patch('dkb_robo.legacy.Wrapper.login')
def test_003__enter(self, mock_legacy, mock_api):
""" test enter """
Expand All @@ -85,7 +85,7 @@ def test_003__enter(self, mock_legacy, mock_api):
self.assertFalse(mock_legacy.called)
self.assertFalse(mock_api.called)

@patch('dkb_robo.api.Wrapper.login')
@patch('dkb_robo.authentication.Authentication.login')
@patch('dkb_robo.legacy.Wrapper.login')
def test_004__enter(self, mock_legacy, mock_api):
""" test enter """
Expand All @@ -100,7 +100,7 @@ def test_004__enter(self, mock_legacy, mock_api):
self.assertFalse(mock_legacy.called)
self.assertTrue(mock_api.called)

@patch('dkb_robo.api.Wrapper.login')
@patch('dkb_robo.authentication.Authentication.login')
@patch('dkb_robo.legacy.Wrapper.login')
def test_005__enter(self, mock_legacy, mock_api):
""" test enter """
Expand All @@ -113,7 +113,7 @@ def test_005__enter(self, mock_legacy, mock_api):
self.assertTrue(mock_api.called)
self.assertEqual(1, self.dkb.mfa_device)

@patch('dkb_robo.api.Wrapper.login')
@patch('dkb_robo.authentication.Authentication.login')
@patch('dkb_robo.legacy.Wrapper.login')
def test_006__enter(self, mock_legacy, mock_api):
""" test enter """
Expand All @@ -126,7 +126,7 @@ def test_006__enter(self, mock_legacy, mock_api):
self.assertTrue(mock_api.called)
self.assertEqual(2, self.dkb.mfa_device)

@patch('dkb_robo.api.Wrapper.login')
@patch('dkb_robo.authentication.Authentication.login')
@patch('dkb_robo.legacy.Wrapper.login')
def test_007__enter(self, mock_legacy, mock_api):
""" test enter """
Expand Down

0 comments on commit 99b6f48

Please sign in to comment.