Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix import sorting in OpenLDAP test files
Organize imports in test files to comply with ruff linting rules:
- tests/conftest.py: Sort imports alphabetically
- tests/test_check.py: Sort imports alphabetically
- tests/test_unit.py: Sort imports alphabetically

Signed-off-by: puretension <[email protected]>
  • Loading branch information
puretension committed Oct 24, 2025
commit f1139b2fad29addabe1bace5e33f4af71450f64e
1 change: 0 additions & 1 deletion openldap/tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
from copy import deepcopy

import pytest

from datadog_checks.dev import TempDir, docker_run
from datadog_checks.dev.fs import create_file, path_exists
from datadog_checks.openldap import OpenLDAP
Expand Down
1 change: 0 additions & 1 deletion openldap/tests/test_check.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@

import ldap3
import pytest

from datadog_checks.base.utils.platform import Platform

from .common import _check
Expand Down
3 changes: 1 addition & 2 deletions openldap/tests/test_unit.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@

import ldap3
import pytest

from datadog_checks.base.errors import CheckException

from .common import HERE
Expand Down Expand Up @@ -315,7 +314,7 @@ def test_custom_query_search_scope_default(check, mocker):
check._perform_custom_queries(conn_mock, queries, tags, instance)

conn_mock.search.assert_called_once_with(
"ou=users,dc=example,dc=com", "(objectClass=person)", search_scope=DEFAULT_SEARCH_SCOPE, attributes=None
"ou=users,dc=example,dc=com", "(objectClass=person)", search_scope=ldap3.SUBTREE, attributes=None
)


Expand Down
Loading