test: fix import errors after views.py split
- Fix IndentationError in test_poll_complete.py (remove duplicate lines) - Fix ImportError in test_ldap_optional_helpers.py (update import path to _helpers module) Tests now collect 515 items without collection errors. 11 pre-existing test failures remain (auth registration issues unrelated to refactoring).
This commit is contained in:
parent
1f0858b085
commit
423f14831d
@ -644,8 +644,3 @@ class TestPollEdgeCases:
|
||||
|
||||
# total_voters должен быть 1, не 2
|
||||
assert response.data['results']['total_voters'] == 1
|
||||
url, {'option_ids': [opt1.id, opt2.id]}, format='json'
|
||||
)
|
||||
|
||||
# total_voters должен быть 1, не 2
|
||||
assert response.data['results']['total_voters'] == 1
|
||||
|
||||
@ -8,7 +8,7 @@ import pytest
|
||||
from unittest.mock import Mock
|
||||
from rest_framework.response import Response
|
||||
|
||||
from api.v1.employees.views import _is_ldap_enabled, _ldap_try
|
||||
from api.v1.employees.views._helpers import _is_ldap_enabled, _ldap_try
|
||||
from employees.ldap.errors import (
|
||||
DirectoryLdapError,
|
||||
DirectoryServiceError,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user