Skip to content

Commit e56cd7d

Browse files
fix tests
1 parent 1fd7e2c commit e56cd7d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

tests/test_core.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ def test_headers_ignored(self, mock_read_csv):
1717
"header6"]
1818
]
1919

20-
mapping = core.read_mapping_from_csv()
20+
mapping = core.read_mapping_from_csv(bind='')
2121

2222
self.assertTrue("teams" in mapping)
2323
self.assertTrue("folders" in mapping)

tests/test_ldap.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
from unittest import TestCase
2-
from unittest.mock import patch, Mock
2+
from unittest.mock import patch, Mock, ANY
33

44
from ldap3 import ALL, NTLM
55

@@ -23,7 +23,7 @@ def test_creates_connection(self, mock_configuration, mock_server, mock_connecti
2323
self.assertEqual(output, True)
2424
self.assertEqual(mock_server.call_count, 1)
2525
self.assertEqual(mock_connection.call_count, 1)
26-
mock_server.assert_called_with("my_url", get_info=ALL)
26+
mock_server.assert_called_with("my_url", get_info=ALL, use_ssl=ANY, port=ANY)
2727
mock_connection.assert_called_with(mock_server_object, "my_user", "my_password", auto_bind=True, read_only=True)
2828

2929

0 commit comments

Comments
 (0)