Skip to content

Commit 19293f5

Browse files
add login to test sendaction
1 parent cbe83d5 commit 19293f5

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tests/unit/test_connection.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
1-
import unittest
21
import time
2+
import unittest
3+
34
from asterisk.ami import AMIClient
45
from mock_ami import AMIMock
6+
from tests.settings import login
57

68

79
class ConnectionTest(unittest.TestCase):
@@ -18,4 +20,5 @@ def test_start(self):
1820
client.connect()
1921
time.sleep(0.5)
2022
self.assertEqual(client._ami_version, '6.6.6')
23+
client.login(**login)
2124
client.disconnect()

0 commit comments

Comments
 (0)