Files
guilan-ace-deployment/tasks/evidence/2026-09-24/backend-focused-tests.txt

1702 lines
109 KiB
Plaintext

Creating test database for alias 'default'...
EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE......D:\GuilanCE\GuilanCEA-main\guilan-ace-backend\.venv\Lib\site-packages\django\core\handlers\base.py:61: UserWarning: No directory at: D:\GuilanCE\GuilanCEA-main\guilan-ace-backend\staticfiles\
mw_instance = middleware(adapted_handler)
....................E....E.........EEEEEEEE..E..EEE.E..EEE...EEEEEEEEEEEE.EEEEEE.EEEEEEEEEEEEE.......E..
======================================================================
ERROR: apps.users.tests.unit.test_users (unittest.loader._FailedTest.apps.users.tests.unit.test_users)
----------------------------------------------------------------------
ImportError: Failed to import test module: apps.users.tests.unit.test_users
Traceback (most recent call last):
File "C:\Users\Eight\AppData\Local\Programs\Python\Python313\Lib\unittest\loader.py", line 396, in _find_test_path
module = self._get_module_from_name(name)
File "C:\Users\Eight\AppData\Local\Programs\Python\Python313\Lib\unittest\loader.py", line 339, in _get_module_from_name
__import__(name)
~~~~~~~~~~^^^^^^
File "D:\GuilanCE\GuilanCEA-main\guilan-ace-backend\apps\users\tests\unit\test_users.py", line 13, in <module>
from apps.users.signals import send_verification_email_on_registration
ImportError: cannot import name 'send_verification_email_on_registration' from 'apps.users.signals' (D:\GuilanCE\GuilanCEA-main\guilan-ace-backend\apps\users\signals.py)
======================================================================
ERROR: test_check_username_reports_availability (apps.users.tests.integration.test_users.UsersAPIIntegrationTests.test_check_username_reports_availability)
----------------------------------------------------------------------
Traceback (most recent call last):
File "D:\GuilanCE\GuilanCEA-main\guilan-ace-backend\apps\users\tests\integration\test_users.py", line 48, in setUp
) = [patcher.start() for patcher in patchers]
~~~~~~~~~~~~~^^
File "C:\Users\Eight\AppData\Local\Programs\Python\Python313\Lib\unittest\mock.py", line 1643, in start
result = self.__enter__()
File "C:\Users\Eight\AppData\Local\Programs\Python\Python313\Lib\unittest\mock.py", line 1475, in __enter__
self.target = self.getter()
~~~~~~~~~~~^^
File "C:\Users\Eight\AppData\Local\Programs\Python\Python313\Lib\pkgutil.py", line 528, in resolve_name
result = getattr(result, p)
AttributeError: module 'apps.users.signals' has no attribute 'send_verification_email'
======================================================================
ERROR: test_check_username_reports_existing (apps.users.tests.integration.test_users.UsersAPIIntegrationTests.test_check_username_reports_existing)
----------------------------------------------------------------------
Traceback (most recent call last):
File "D:\GuilanCE\GuilanCEA-main\guilan-ace-backend\apps\users\tests\integration\test_users.py", line 48, in setUp
) = [patcher.start() for patcher in patchers]
~~~~~~~~~~~~~^^
File "C:\Users\Eight\AppData\Local\Programs\Python\Python313\Lib\unittest\mock.py", line 1643, in start
result = self.__enter__()
File "C:\Users\Eight\AppData\Local\Programs\Python\Python313\Lib\unittest\mock.py", line 1475, in __enter__
self.target = self.getter()
~~~~~~~~~~~^^
File "C:\Users\Eight\AppData\Local\Programs\Python\Python313\Lib\pkgutil.py", line 528, in resolve_name
result = getattr(result, p)
AttributeError: module 'apps.users.signals' has no attribute 'send_verification_email'
======================================================================
ERROR: test_delete_profile_picture_removes_file (apps.users.tests.integration.test_users.UsersAPIIntegrationTests.test_delete_profile_picture_removes_file)
----------------------------------------------------------------------
Traceback (most recent call last):
File "D:\GuilanCE\GuilanCEA-main\guilan-ace-backend\apps\users\tests\integration\test_users.py", line 48, in setUp
) = [patcher.start() for patcher in patchers]
~~~~~~~~~~~~~^^
File "C:\Users\Eight\AppData\Local\Programs\Python\Python313\Lib\unittest\mock.py", line 1643, in start
result = self.__enter__()
File "C:\Users\Eight\AppData\Local\Programs\Python\Python313\Lib\unittest\mock.py", line 1475, in __enter__
self.target = self.getter()
~~~~~~~~~~~^^
File "C:\Users\Eight\AppData\Local\Programs\Python\Python313\Lib\pkgutil.py", line 528, in resolve_name
result = getattr(result, p)
AttributeError: module 'apps.users.signals' has no attribute 'send_verification_email'
======================================================================
ERROR: test_get_profile_requires_authentication (apps.users.tests.integration.test_users.UsersAPIIntegrationTests.test_get_profile_requires_authentication)
----------------------------------------------------------------------
Traceback (most recent call last):
File "D:\GuilanCE\GuilanCEA-main\guilan-ace-backend\apps\users\tests\integration\test_users.py", line 48, in setUp
) = [patcher.start() for patcher in patchers]
~~~~~~~~~~~~~^^
File "C:\Users\Eight\AppData\Local\Programs\Python\Python313\Lib\unittest\mock.py", line 1643, in start
result = self.__enter__()
File "C:\Users\Eight\AppData\Local\Programs\Python\Python313\Lib\unittest\mock.py", line 1475, in __enter__
self.target = self.getter()
~~~~~~~~~~~^^
File "C:\Users\Eight\AppData\Local\Programs\Python\Python313\Lib\pkgutil.py", line 528, in resolve_name
result = getattr(result, p)
AttributeError: module 'apps.users.signals' has no attribute 'send_verification_email'
======================================================================
ERROR: test_get_profile_returns_schema_fields (apps.users.tests.integration.test_users.UsersAPIIntegrationTests.test_get_profile_returns_schema_fields)
----------------------------------------------------------------------
Traceback (most recent call last):
File "D:\GuilanCE\GuilanCEA-main\guilan-ace-backend\apps\users\tests\integration\test_users.py", line 48, in setUp
) = [patcher.start() for patcher in patchers]
~~~~~~~~~~~~~^^
File "C:\Users\Eight\AppData\Local\Programs\Python\Python313\Lib\unittest\mock.py", line 1643, in start
result = self.__enter__()
File "C:\Users\Eight\AppData\Local\Programs\Python\Python313\Lib\unittest\mock.py", line 1475, in __enter__
self.target = self.getter()
~~~~~~~~~~~^^
File "C:\Users\Eight\AppData\Local\Programs\Python\Python313\Lib\pkgutil.py", line 528, in resolve_name
result = getattr(result, p)
AttributeError: module 'apps.users.signals' has no attribute 'send_verification_email'
======================================================================
ERROR: test_list_deleted_users_requires_privileged_user (apps.users.tests.integration.test_users.UsersAPIIntegrationTests.test_list_deleted_users_requires_privileged_user)
----------------------------------------------------------------------
Traceback (most recent call last):
File "D:\GuilanCE\GuilanCEA-main\guilan-ace-backend\apps\users\tests\integration\test_users.py", line 48, in setUp
) = [patcher.start() for patcher in patchers]
~~~~~~~~~~~~~^^
File "C:\Users\Eight\AppData\Local\Programs\Python\Python313\Lib\unittest\mock.py", line 1643, in start
result = self.__enter__()
File "C:\Users\Eight\AppData\Local\Programs\Python\Python313\Lib\unittest\mock.py", line 1475, in __enter__
self.target = self.getter()
~~~~~~~~~~~^^
File "C:\Users\Eight\AppData\Local\Programs\Python\Python313\Lib\pkgutil.py", line 528, in resolve_name
result = getattr(result, p)
AttributeError: module 'apps.users.signals' has no attribute 'send_verification_email'
======================================================================
ERROR: test_list_deleted_users_returns_payload_for_staff (apps.users.tests.integration.test_users.UsersAPIIntegrationTests.test_list_deleted_users_returns_payload_for_staff)
----------------------------------------------------------------------
Traceback (most recent call last):
File "D:\GuilanCE\GuilanCEA-main\guilan-ace-backend\apps\users\tests\integration\test_users.py", line 48, in setUp
) = [patcher.start() for patcher in patchers]
~~~~~~~~~~~~~^^
File "C:\Users\Eight\AppData\Local\Programs\Python\Python313\Lib\unittest\mock.py", line 1643, in start
result = self.__enter__()
File "C:\Users\Eight\AppData\Local\Programs\Python\Python313\Lib\unittest\mock.py", line 1475, in __enter__
self.target = self.getter()
~~~~~~~~~~~^^
File "C:\Users\Eight\AppData\Local\Programs\Python\Python313\Lib\pkgutil.py", line 528, in resolve_name
result = getattr(result, p)
AttributeError: module 'apps.users.signals' has no attribute 'send_verification_email'
======================================================================
ERROR: test_login_rejects_inactive_user (apps.users.tests.integration.test_users.UsersAPIIntegrationTests.test_login_rejects_inactive_user)
----------------------------------------------------------------------
Traceback (most recent call last):
File "D:\GuilanCE\GuilanCEA-main\guilan-ace-backend\apps\users\tests\integration\test_users.py", line 48, in setUp
) = [patcher.start() for patcher in patchers]
~~~~~~~~~~~~~^^
File "C:\Users\Eight\AppData\Local\Programs\Python\Python313\Lib\unittest\mock.py", line 1643, in start
result = self.__enter__()
File "C:\Users\Eight\AppData\Local\Programs\Python\Python313\Lib\unittest\mock.py", line 1475, in __enter__
self.target = self.getter()
~~~~~~~~~~~^^
File "C:\Users\Eight\AppData\Local\Programs\Python\Python313\Lib\pkgutil.py", line 528, in resolve_name
result = getattr(result, p)
AttributeError: module 'apps.users.signals' has no attribute 'send_verification_email'
======================================================================
ERROR: test_login_rejects_unverified_user (apps.users.tests.integration.test_users.UsersAPIIntegrationTests.test_login_rejects_unverified_user)
----------------------------------------------------------------------
Traceback (most recent call last):
File "D:\GuilanCE\GuilanCEA-main\guilan-ace-backend\apps\users\tests\integration\test_users.py", line 48, in setUp
) = [patcher.start() for patcher in patchers]
~~~~~~~~~~~~~^^
File "C:\Users\Eight\AppData\Local\Programs\Python\Python313\Lib\unittest\mock.py", line 1643, in start
result = self.__enter__()
File "C:\Users\Eight\AppData\Local\Programs\Python\Python313\Lib\unittest\mock.py", line 1475, in __enter__
self.target = self.getter()
~~~~~~~~~~~^^
File "C:\Users\Eight\AppData\Local\Programs\Python\Python313\Lib\pkgutil.py", line 528, in resolve_name
result = getattr(result, p)
AttributeError: module 'apps.users.signals' has no attribute 'send_verification_email'
======================================================================
ERROR: test_login_returns_tokens_for_verified_user (apps.users.tests.integration.test_users.UsersAPIIntegrationTests.test_login_returns_tokens_for_verified_user)
----------------------------------------------------------------------
Traceback (most recent call last):
File "D:\GuilanCE\GuilanCEA-main\guilan-ace-backend\apps\users\tests\integration\test_users.py", line 48, in setUp
) = [patcher.start() for patcher in patchers]
~~~~~~~~~~~~~^^
File "C:\Users\Eight\AppData\Local\Programs\Python\Python313\Lib\unittest\mock.py", line 1643, in start
result = self.__enter__()
File "C:\Users\Eight\AppData\Local\Programs\Python\Python313\Lib\unittest\mock.py", line 1475, in __enter__
self.target = self.getter()
~~~~~~~~~~~^^
File "C:\Users\Eight\AppData\Local\Programs\Python\Python313\Lib\pkgutil.py", line 528, in resolve_name
result = getattr(result, p)
AttributeError: module 'apps.users.signals' has no attribute 'send_verification_email'
======================================================================
ERROR: test_refresh_rejects_expired_token (apps.users.tests.integration.test_users.UsersAPIIntegrationTests.test_refresh_rejects_expired_token)
----------------------------------------------------------------------
Traceback (most recent call last):
File "D:\GuilanCE\GuilanCEA-main\guilan-ace-backend\apps\users\tests\integration\test_users.py", line 48, in setUp
) = [patcher.start() for patcher in patchers]
~~~~~~~~~~~~~^^
File "C:\Users\Eight\AppData\Local\Programs\Python\Python313\Lib\unittest\mock.py", line 1643, in start
result = self.__enter__()
File "C:\Users\Eight\AppData\Local\Programs\Python\Python313\Lib\unittest\mock.py", line 1475, in __enter__
self.target = self.getter()
~~~~~~~~~~~^^
File "C:\Users\Eight\AppData\Local\Programs\Python\Python313\Lib\pkgutil.py", line 528, in resolve_name
result = getattr(result, p)
AttributeError: module 'apps.users.signals' has no attribute 'send_verification_email'
======================================================================
ERROR: test_refresh_rejects_inactive_user (apps.users.tests.integration.test_users.UsersAPIIntegrationTests.test_refresh_rejects_inactive_user)
----------------------------------------------------------------------
Traceback (most recent call last):
File "D:\GuilanCE\GuilanCEA-main\guilan-ace-backend\apps\users\tests\integration\test_users.py", line 48, in setUp
) = [patcher.start() for patcher in patchers]
~~~~~~~~~~~~~^^
File "C:\Users\Eight\AppData\Local\Programs\Python\Python313\Lib\unittest\mock.py", line 1643, in start
result = self.__enter__()
File "C:\Users\Eight\AppData\Local\Programs\Python\Python313\Lib\unittest\mock.py", line 1475, in __enter__
self.target = self.getter()
~~~~~~~~~~~^^
File "C:\Users\Eight\AppData\Local\Programs\Python\Python313\Lib\pkgutil.py", line 528, in resolve_name
result = getattr(result, p)
AttributeError: module 'apps.users.signals' has no attribute 'send_verification_email'
======================================================================
ERROR: test_refresh_rejects_invalid_token_string (apps.users.tests.integration.test_users.UsersAPIIntegrationTests.test_refresh_rejects_invalid_token_string)
----------------------------------------------------------------------
Traceback (most recent call last):
File "D:\GuilanCE\GuilanCEA-main\guilan-ace-backend\apps\users\tests\integration\test_users.py", line 48, in setUp
) = [patcher.start() for patcher in patchers]
~~~~~~~~~~~~~^^
File "C:\Users\Eight\AppData\Local\Programs\Python\Python313\Lib\unittest\mock.py", line 1643, in start
result = self.__enter__()
File "C:\Users\Eight\AppData\Local\Programs\Python\Python313\Lib\unittest\mock.py", line 1475, in __enter__
self.target = self.getter()
~~~~~~~~~~~^^
File "C:\Users\Eight\AppData\Local\Programs\Python\Python313\Lib\pkgutil.py", line 528, in resolve_name
result = getattr(result, p)
AttributeError: module 'apps.users.signals' has no attribute 'send_verification_email'
======================================================================
ERROR: test_refresh_rejects_missing_user_id (apps.users.tests.integration.test_users.UsersAPIIntegrationTests.test_refresh_rejects_missing_user_id)
----------------------------------------------------------------------
Traceback (most recent call last):
File "D:\GuilanCE\GuilanCEA-main\guilan-ace-backend\apps\users\tests\integration\test_users.py", line 48, in setUp
) = [patcher.start() for patcher in patchers]
~~~~~~~~~~~~~^^
File "C:\Users\Eight\AppData\Local\Programs\Python\Python313\Lib\unittest\mock.py", line 1643, in start
result = self.__enter__()
File "C:\Users\Eight\AppData\Local\Programs\Python\Python313\Lib\unittest\mock.py", line 1475, in __enter__
self.target = self.getter()
~~~~~~~~~~~^^
File "C:\Users\Eight\AppData\Local\Programs\Python\Python313\Lib\pkgutil.py", line 528, in resolve_name
result = getattr(result, p)
AttributeError: module 'apps.users.signals' has no attribute 'send_verification_email'
======================================================================
ERROR: test_refresh_rejects_non_refresh_token (apps.users.tests.integration.test_users.UsersAPIIntegrationTests.test_refresh_rejects_non_refresh_token)
----------------------------------------------------------------------
Traceback (most recent call last):
File "D:\GuilanCE\GuilanCEA-main\guilan-ace-backend\apps\users\tests\integration\test_users.py", line 48, in setUp
) = [patcher.start() for patcher in patchers]
~~~~~~~~~~~~~^^
File "C:\Users\Eight\AppData\Local\Programs\Python\Python313\Lib\unittest\mock.py", line 1643, in start
result = self.__enter__()
File "C:\Users\Eight\AppData\Local\Programs\Python\Python313\Lib\unittest\mock.py", line 1475, in __enter__
self.target = self.getter()
~~~~~~~~~~~^^
File "C:\Users\Eight\AppData\Local\Programs\Python\Python313\Lib\pkgutil.py", line 528, in resolve_name
result = getattr(result, p)
AttributeError: module 'apps.users.signals' has no attribute 'send_verification_email'
======================================================================
ERROR: test_refresh_rejects_unverified_user (apps.users.tests.integration.test_users.UsersAPIIntegrationTests.test_refresh_rejects_unverified_user)
----------------------------------------------------------------------
Traceback (most recent call last):
File "D:\GuilanCE\GuilanCEA-main\guilan-ace-backend\apps\users\tests\integration\test_users.py", line 48, in setUp
) = [patcher.start() for patcher in patchers]
~~~~~~~~~~~~~^^
File "C:\Users\Eight\AppData\Local\Programs\Python\Python313\Lib\unittest\mock.py", line 1643, in start
result = self.__enter__()
File "C:\Users\Eight\AppData\Local\Programs\Python\Python313\Lib\unittest\mock.py", line 1475, in __enter__
self.target = self.getter()
~~~~~~~~~~~^^
File "C:\Users\Eight\AppData\Local\Programs\Python\Python313\Lib\pkgutil.py", line 528, in resolve_name
result = getattr(result, p)
AttributeError: module 'apps.users.signals' has no attribute 'send_verification_email'
======================================================================
ERROR: test_refresh_returns_tokens (apps.users.tests.integration.test_users.UsersAPIIntegrationTests.test_refresh_returns_tokens)
----------------------------------------------------------------------
Traceback (most recent call last):
File "D:\GuilanCE\GuilanCEA-main\guilan-ace-backend\apps\users\tests\integration\test_users.py", line 48, in setUp
) = [patcher.start() for patcher in patchers]
~~~~~~~~~~~~~^^
File "C:\Users\Eight\AppData\Local\Programs\Python\Python313\Lib\unittest\mock.py", line 1643, in start
result = self.__enter__()
File "C:\Users\Eight\AppData\Local\Programs\Python\Python313\Lib\unittest\mock.py", line 1475, in __enter__
self.target = self.getter()
~~~~~~~~~~~^^
File "C:\Users\Eight\AppData\Local\Programs\Python\Python313\Lib\pkgutil.py", line 528, in resolve_name
result = getattr(result, p)
AttributeError: module 'apps.users.signals' has no attribute 'send_verification_email'
======================================================================
ERROR: test_register_creates_user_and_enqueues_signal (apps.users.tests.integration.test_users.UsersAPIIntegrationTests.test_register_creates_user_and_enqueues_signal)
----------------------------------------------------------------------
Traceback (most recent call last):
File "D:\GuilanCE\GuilanCEA-main\guilan-ace-backend\apps\users\tests\integration\test_users.py", line 48, in setUp
) = [patcher.start() for patcher in patchers]
~~~~~~~~~~~~~^^
File "C:\Users\Eight\AppData\Local\Programs\Python\Python313\Lib\unittest\mock.py", line 1643, in start
result = self.__enter__()
File "C:\Users\Eight\AppData\Local\Programs\Python\Python313\Lib\unittest\mock.py", line 1475, in __enter__
self.target = self.getter()
~~~~~~~~~~~^^
File "C:\Users\Eight\AppData\Local\Programs\Python\Python313\Lib\pkgutil.py", line 528, in resolve_name
result = getattr(result, p)
AttributeError: module 'apps.users.signals' has no attribute 'send_verification_email'
======================================================================
ERROR: test_register_rejects_duplicate_email (apps.users.tests.integration.test_users.UsersAPIIntegrationTests.test_register_rejects_duplicate_email)
----------------------------------------------------------------------
Traceback (most recent call last):
File "D:\GuilanCE\GuilanCEA-main\guilan-ace-backend\apps\users\tests\integration\test_users.py", line 48, in setUp
) = [patcher.start() for patcher in patchers]
~~~~~~~~~~~~~^^
File "C:\Users\Eight\AppData\Local\Programs\Python\Python313\Lib\unittest\mock.py", line 1643, in start
result = self.__enter__()
File "C:\Users\Eight\AppData\Local\Programs\Python\Python313\Lib\unittest\mock.py", line 1475, in __enter__
self.target = self.getter()
~~~~~~~~~~~^^
File "C:\Users\Eight\AppData\Local\Programs\Python\Python313\Lib\pkgutil.py", line 528, in resolve_name
result = getattr(result, p)
AttributeError: module 'apps.users.signals' has no attribute 'send_verification_email'
======================================================================
ERROR: test_register_rejects_duplicate_student_id_in_same_university (apps.users.tests.integration.test_users.UsersAPIIntegrationTests.test_register_rejects_duplicate_student_id_in_same_university)
----------------------------------------------------------------------
Traceback (most recent call last):
File "D:\GuilanCE\GuilanCEA-main\guilan-ace-backend\apps\users\tests\integration\test_users.py", line 48, in setUp
) = [patcher.start() for patcher in patchers]
~~~~~~~~~~~~~^^
File "C:\Users\Eight\AppData\Local\Programs\Python\Python313\Lib\unittest\mock.py", line 1643, in start
result = self.__enter__()
File "C:\Users\Eight\AppData\Local\Programs\Python\Python313\Lib\unittest\mock.py", line 1475, in __enter__
self.target = self.getter()
~~~~~~~~~~~^^
File "C:\Users\Eight\AppData\Local\Programs\Python\Python313\Lib\pkgutil.py", line 528, in resolve_name
result = getattr(result, p)
AttributeError: module 'apps.users.signals' has no attribute 'send_verification_email'
======================================================================
ERROR: test_register_rejects_duplicate_username (apps.users.tests.integration.test_users.UsersAPIIntegrationTests.test_register_rejects_duplicate_username)
----------------------------------------------------------------------
Traceback (most recent call last):
File "D:\GuilanCE\GuilanCEA-main\guilan-ace-backend\apps\users\tests\integration\test_users.py", line 48, in setUp
) = [patcher.start() for patcher in patchers]
~~~~~~~~~~~~~^^
File "C:\Users\Eight\AppData\Local\Programs\Python\Python313\Lib\unittest\mock.py", line 1643, in start
result = self.__enter__()
File "C:\Users\Eight\AppData\Local\Programs\Python\Python313\Lib\unittest\mock.py", line 1475, in __enter__
self.target = self.getter()
~~~~~~~~~~~^^
File "C:\Users\Eight\AppData\Local\Programs\Python\Python313\Lib\pkgutil.py", line 528, in resolve_name
result = getattr(result, p)
AttributeError: module 'apps.users.signals' has no attribute 'send_verification_email'
======================================================================
ERROR: test_register_rejects_short_student_id (apps.users.tests.integration.test_users.UsersAPIIntegrationTests.test_register_rejects_short_student_id)
----------------------------------------------------------------------
Traceback (most recent call last):
File "D:\GuilanCE\GuilanCEA-main\guilan-ace-backend\apps\users\tests\integration\test_users.py", line 48, in setUp
) = [patcher.start() for patcher in patchers]
~~~~~~~~~~~~~^^
File "C:\Users\Eight\AppData\Local\Programs\Python\Python313\Lib\unittest\mock.py", line 1643, in start
result = self.__enter__()
File "C:\Users\Eight\AppData\Local\Programs\Python\Python313\Lib\unittest\mock.py", line 1475, in __enter__
self.target = self.getter()
~~~~~~~~~~~^^
File "C:\Users\Eight\AppData\Local\Programs\Python\Python313\Lib\pkgutil.py", line 528, in resolve_name
result = getattr(result, p)
AttributeError: module 'apps.users.signals' has no attribute 'send_verification_email'
======================================================================
ERROR: test_request_password_reset_enqueues_email (apps.users.tests.integration.test_users.UsersAPIIntegrationTests.test_request_password_reset_enqueues_email)
----------------------------------------------------------------------
Traceback (most recent call last):
File "D:\GuilanCE\GuilanCEA-main\guilan-ace-backend\apps\users\tests\integration\test_users.py", line 48, in setUp
) = [patcher.start() for patcher in patchers]
~~~~~~~~~~~~~^^
File "C:\Users\Eight\AppData\Local\Programs\Python\Python313\Lib\unittest\mock.py", line 1643, in start
result = self.__enter__()
File "C:\Users\Eight\AppData\Local\Programs\Python\Python313\Lib\unittest\mock.py", line 1475, in __enter__
self.target = self.getter()
~~~~~~~~~~~^^
File "C:\Users\Eight\AppData\Local\Programs\Python\Python313\Lib\pkgutil.py", line 528, in resolve_name
result = getattr(result, p)
AttributeError: module 'apps.users.signals' has no attribute 'send_verification_email'
======================================================================
ERROR: test_request_password_reset_unknown_email_returns_error (apps.users.tests.integration.test_users.UsersAPIIntegrationTests.test_request_password_reset_unknown_email_returns_error)
----------------------------------------------------------------------
Traceback (most recent call last):
File "D:\GuilanCE\GuilanCEA-main\guilan-ace-backend\apps\users\tests\integration\test_users.py", line 48, in setUp
) = [patcher.start() for patcher in patchers]
~~~~~~~~~~~~~^^
File "C:\Users\Eight\AppData\Local\Programs\Python\Python313\Lib\unittest\mock.py", line 1643, in start
result = self.__enter__()
File "C:\Users\Eight\AppData\Local\Programs\Python\Python313\Lib\unittest\mock.py", line 1475, in __enter__
self.target = self.getter()
~~~~~~~~~~~^^
File "C:\Users\Eight\AppData\Local\Programs\Python\Python313\Lib\pkgutil.py", line 528, in resolve_name
result = getattr(result, p)
AttributeError: module 'apps.users.signals' has no attribute 'send_verification_email'
======================================================================
ERROR: test_resend_verification_rejects_unknown_email (apps.users.tests.integration.test_users.UsersAPIIntegrationTests.test_resend_verification_rejects_unknown_email)
----------------------------------------------------------------------
Traceback (most recent call last):
File "D:\GuilanCE\GuilanCEA-main\guilan-ace-backend\apps\users\tests\integration\test_users.py", line 48, in setUp
) = [patcher.start() for patcher in patchers]
~~~~~~~~~~~~~^^
File "C:\Users\Eight\AppData\Local\Programs\Python\Python313\Lib\unittest\mock.py", line 1643, in start
result = self.__enter__()
File "C:\Users\Eight\AppData\Local\Programs\Python\Python313\Lib\unittest\mock.py", line 1475, in __enter__
self.target = self.getter()
~~~~~~~~~~~^^
File "C:\Users\Eight\AppData\Local\Programs\Python\Python313\Lib\pkgutil.py", line 528, in resolve_name
result = getattr(result, p)
AttributeError: module 'apps.users.signals' has no attribute 'send_verification_email'
======================================================================
ERROR: test_reset_password_confirm_rejects_expired_token (apps.users.tests.integration.test_users.UsersAPIIntegrationTests.test_reset_password_confirm_rejects_expired_token)
----------------------------------------------------------------------
Traceback (most recent call last):
File "D:\GuilanCE\GuilanCEA-main\guilan-ace-backend\apps\users\tests\integration\test_users.py", line 48, in setUp
) = [patcher.start() for patcher in patchers]
~~~~~~~~~~~~~^^
File "C:\Users\Eight\AppData\Local\Programs\Python\Python313\Lib\unittest\mock.py", line 1643, in start
result = self.__enter__()
File "C:\Users\Eight\AppData\Local\Programs\Python\Python313\Lib\unittest\mock.py", line 1475, in __enter__
self.target = self.getter()
~~~~~~~~~~~^^
File "C:\Users\Eight\AppData\Local\Programs\Python\Python313\Lib\pkgutil.py", line 528, in resolve_name
result = getattr(result, p)
AttributeError: module 'apps.users.signals' has no attribute 'send_verification_email'
======================================================================
ERROR: test_reset_password_confirm_rejects_unknown_token (apps.users.tests.integration.test_users.UsersAPIIntegrationTests.test_reset_password_confirm_rejects_unknown_token)
----------------------------------------------------------------------
Traceback (most recent call last):
File "D:\GuilanCE\GuilanCEA-main\guilan-ace-backend\apps\users\tests\integration\test_users.py", line 48, in setUp
) = [patcher.start() for patcher in patchers]
~~~~~~~~~~~~~^^
File "C:\Users\Eight\AppData\Local\Programs\Python\Python313\Lib\unittest\mock.py", line 1643, in start
result = self.__enter__()
File "C:\Users\Eight\AppData\Local\Programs\Python\Python313\Lib\unittest\mock.py", line 1475, in __enter__
self.target = self.getter()
~~~~~~~~~~~^^
File "C:\Users\Eight\AppData\Local\Programs\Python\Python313\Lib\pkgutil.py", line 528, in resolve_name
result = getattr(result, p)
AttributeError: module 'apps.users.signals' has no attribute 'send_verification_email'
======================================================================
ERROR: test_reset_password_confirm_updates_credentials (apps.users.tests.integration.test_users.UsersAPIIntegrationTests.test_reset_password_confirm_updates_credentials)
----------------------------------------------------------------------
Traceback (most recent call last):
File "D:\GuilanCE\GuilanCEA-main\guilan-ace-backend\apps\users\tests\integration\test_users.py", line 48, in setUp
) = [patcher.start() for patcher in patchers]
~~~~~~~~~~~~~^^
File "C:\Users\Eight\AppData\Local\Programs\Python\Python313\Lib\unittest\mock.py", line 1643, in start
result = self.__enter__()
File "C:\Users\Eight\AppData\Local\Programs\Python\Python313\Lib\unittest\mock.py", line 1475, in __enter__
self.target = self.getter()
~~~~~~~~~~~^^
File "C:\Users\Eight\AppData\Local\Programs\Python\Python313\Lib\pkgutil.py", line 528, in resolve_name
result = getattr(result, p)
AttributeError: module 'apps.users.signals' has no attribute 'send_verification_email'
======================================================================
ERROR: test_restore_user_missing_returns_error (apps.users.tests.integration.test_users.UsersAPIIntegrationTests.test_restore_user_missing_returns_error)
----------------------------------------------------------------------
Traceback (most recent call last):
File "D:\GuilanCE\GuilanCEA-main\guilan-ace-backend\apps\users\tests\integration\test_users.py", line 48, in setUp
) = [patcher.start() for patcher in patchers]
~~~~~~~~~~~~~^^
File "C:\Users\Eight\AppData\Local\Programs\Python\Python313\Lib\unittest\mock.py", line 1643, in start
result = self.__enter__()
File "C:\Users\Eight\AppData\Local\Programs\Python\Python313\Lib\unittest\mock.py", line 1475, in __enter__
self.target = self.getter()
~~~~~~~~~~~^^
File "C:\Users\Eight\AppData\Local\Programs\Python\Python313\Lib\pkgutil.py", line 528, in resolve_name
result = getattr(result, p)
AttributeError: module 'apps.users.signals' has no attribute 'send_verification_email'
======================================================================
ERROR: test_restore_user_requires_privileged_user (apps.users.tests.integration.test_users.UsersAPIIntegrationTests.test_restore_user_requires_privileged_user)
----------------------------------------------------------------------
Traceback (most recent call last):
File "D:\GuilanCE\GuilanCEA-main\guilan-ace-backend\apps\users\tests\integration\test_users.py", line 48, in setUp
) = [patcher.start() for patcher in patchers]
~~~~~~~~~~~~~^^
File "C:\Users\Eight\AppData\Local\Programs\Python\Python313\Lib\unittest\mock.py", line 1643, in start
result = self.__enter__()
File "C:\Users\Eight\AppData\Local\Programs\Python\Python313\Lib\unittest\mock.py", line 1475, in __enter__
self.target = self.getter()
~~~~~~~~~~~^^
File "C:\Users\Eight\AppData\Local\Programs\Python\Python313\Lib\pkgutil.py", line 528, in resolve_name
result = getattr(result, p)
AttributeError: module 'apps.users.signals' has no attribute 'send_verification_email'
======================================================================
ERROR: test_restore_user_restores_record_for_staff (apps.users.tests.integration.test_users.UsersAPIIntegrationTests.test_restore_user_restores_record_for_staff)
----------------------------------------------------------------------
Traceback (most recent call last):
File "D:\GuilanCE\GuilanCEA-main\guilan-ace-backend\apps\users\tests\integration\test_users.py", line 48, in setUp
) = [patcher.start() for patcher in patchers]
~~~~~~~~~~~~~^^
File "C:\Users\Eight\AppData\Local\Programs\Python\Python313\Lib\unittest\mock.py", line 1643, in start
result = self.__enter__()
File "C:\Users\Eight\AppData\Local\Programs\Python\Python313\Lib\unittest\mock.py", line 1475, in __enter__
self.target = self.getter()
~~~~~~~~~~~^^
File "C:\Users\Eight\AppData\Local\Programs\Python\Python313\Lib\pkgutil.py", line 528, in resolve_name
result = getattr(result, p)
AttributeError: module 'apps.users.signals' has no attribute 'send_verification_email'
======================================================================
ERROR: test_update_profile_persists_changes (apps.users.tests.integration.test_users.UsersAPIIntegrationTests.test_update_profile_persists_changes)
----------------------------------------------------------------------
Traceback (most recent call last):
File "D:\GuilanCE\GuilanCEA-main\guilan-ace-backend\apps\users\tests\integration\test_users.py", line 48, in setUp
) = [patcher.start() for patcher in patchers]
~~~~~~~~~~~~~^^
File "C:\Users\Eight\AppData\Local\Programs\Python\Python313\Lib\unittest\mock.py", line 1643, in start
result = self.__enter__()
File "C:\Users\Eight\AppData\Local\Programs\Python\Python313\Lib\unittest\mock.py", line 1475, in __enter__
self.target = self.getter()
~~~~~~~~~~~^^
File "C:\Users\Eight\AppData\Local\Programs\Python\Python313\Lib\pkgutil.py", line 528, in resolve_name
result = getattr(result, p)
AttributeError: module 'apps.users.signals' has no attribute 'send_verification_email'
======================================================================
ERROR: test_upload_profile_picture_rejects_invalid_type (apps.users.tests.integration.test_users.UsersAPIIntegrationTests.test_upload_profile_picture_rejects_invalid_type)
----------------------------------------------------------------------
Traceback (most recent call last):
File "D:\GuilanCE\GuilanCEA-main\guilan-ace-backend\apps\users\tests\integration\test_users.py", line 48, in setUp
) = [patcher.start() for patcher in patchers]
~~~~~~~~~~~~~^^
File "C:\Users\Eight\AppData\Local\Programs\Python\Python313\Lib\unittest\mock.py", line 1643, in start
result = self.__enter__()
File "C:\Users\Eight\AppData\Local\Programs\Python\Python313\Lib\unittest\mock.py", line 1475, in __enter__
self.target = self.getter()
~~~~~~~~~~~^^
File "C:\Users\Eight\AppData\Local\Programs\Python\Python313\Lib\pkgutil.py", line 528, in resolve_name
result = getattr(result, p)
AttributeError: module 'apps.users.signals' has no attribute 'send_verification_email'
======================================================================
ERROR: test_upload_profile_picture_rejects_large_files (apps.users.tests.integration.test_users.UsersAPIIntegrationTests.test_upload_profile_picture_rejects_large_files)
----------------------------------------------------------------------
Traceback (most recent call last):
File "D:\GuilanCE\GuilanCEA-main\guilan-ace-backend\apps\users\tests\integration\test_users.py", line 48, in setUp
) = [patcher.start() for patcher in patchers]
~~~~~~~~~~~~~^^
File "C:\Users\Eight\AppData\Local\Programs\Python\Python313\Lib\unittest\mock.py", line 1643, in start
result = self.__enter__()
File "C:\Users\Eight\AppData\Local\Programs\Python\Python313\Lib\unittest\mock.py", line 1475, in __enter__
self.target = self.getter()
~~~~~~~~~~~^^
File "C:\Users\Eight\AppData\Local\Programs\Python\Python313\Lib\pkgutil.py", line 528, in resolve_name
result = getattr(result, p)
AttributeError: module 'apps.users.signals' has no attribute 'send_verification_email'
======================================================================
ERROR: test_upload_profile_picture_requires_file (apps.users.tests.integration.test_users.UsersAPIIntegrationTests.test_upload_profile_picture_requires_file)
----------------------------------------------------------------------
Traceback (most recent call last):
File "D:\GuilanCE\GuilanCEA-main\guilan-ace-backend\apps\users\tests\integration\test_users.py", line 48, in setUp
) = [patcher.start() for patcher in patchers]
~~~~~~~~~~~~~^^
File "C:\Users\Eight\AppData\Local\Programs\Python\Python313\Lib\unittest\mock.py", line 1643, in start
result = self.__enter__()
File "C:\Users\Eight\AppData\Local\Programs\Python\Python313\Lib\unittest\mock.py", line 1475, in __enter__
self.target = self.getter()
~~~~~~~~~~~^^
File "C:\Users\Eight\AppData\Local\Programs\Python\Python313\Lib\pkgutil.py", line 528, in resolve_name
result = getattr(result, p)
AttributeError: module 'apps.users.signals' has no attribute 'send_verification_email'
======================================================================
ERROR: test_upload_profile_picture_succeeds (apps.users.tests.integration.test_users.UsersAPIIntegrationTests.test_upload_profile_picture_succeeds)
----------------------------------------------------------------------
Traceback (most recent call last):
File "D:\GuilanCE\GuilanCEA-main\guilan-ace-backend\apps\users\tests\integration\test_users.py", line 48, in setUp
) = [patcher.start() for patcher in patchers]
~~~~~~~~~~~~~^^
File "C:\Users\Eight\AppData\Local\Programs\Python\Python313\Lib\unittest\mock.py", line 1643, in start
result = self.__enter__()
File "C:\Users\Eight\AppData\Local\Programs\Python\Python313\Lib\unittest\mock.py", line 1475, in __enter__
self.target = self.getter()
~~~~~~~~~~~^^
File "C:\Users\Eight\AppData\Local\Programs\Python\Python313\Lib\pkgutil.py", line 528, in resolve_name
result = getattr(result, p)
AttributeError: module 'apps.users.signals' has no attribute 'send_verification_email'
======================================================================
ERROR: test_verify_email_marks_user_verified (apps.users.tests.integration.test_users.UsersAPIIntegrationTests.test_verify_email_marks_user_verified)
----------------------------------------------------------------------
Traceback (most recent call last):
File "D:\GuilanCE\GuilanCEA-main\guilan-ace-backend\apps\users\tests\integration\test_users.py", line 48, in setUp
) = [patcher.start() for patcher in patchers]
~~~~~~~~~~~~~^^
File "C:\Users\Eight\AppData\Local\Programs\Python\Python313\Lib\unittest\mock.py", line 1643, in start
result = self.__enter__()
File "C:\Users\Eight\AppData\Local\Programs\Python\Python313\Lib\unittest\mock.py", line 1475, in __enter__
self.target = self.getter()
~~~~~~~~~~~^^
File "C:\Users\Eight\AppData\Local\Programs\Python\Python313\Lib\pkgutil.py", line 528, in resolve_name
result = getattr(result, p)
AttributeError: module 'apps.users.signals' has no attribute 'send_verification_email'
======================================================================
ERROR: test_verify_email_rejects_unknown_token (apps.users.tests.integration.test_users.UsersAPIIntegrationTests.test_verify_email_rejects_unknown_token)
----------------------------------------------------------------------
Traceback (most recent call last):
File "D:\GuilanCE\GuilanCEA-main\guilan-ace-backend\apps\users\tests\integration\test_users.py", line 48, in setUp
) = [patcher.start() for patcher in patchers]
~~~~~~~~~~~~~^^
File "C:\Users\Eight\AppData\Local\Programs\Python\Python313\Lib\unittest\mock.py", line 1643, in start
result = self.__enter__()
File "C:\Users\Eight\AppData\Local\Programs\Python\Python313\Lib\unittest\mock.py", line 1475, in __enter__
self.target = self.getter()
~~~~~~~~~~~^^
File "C:\Users\Eight\AppData\Local\Programs\Python\Python313\Lib\pkgutil.py", line 528, in resolve_name
result = getattr(result, p)
AttributeError: module 'apps.users.signals' has no attribute 'send_verification_email'
======================================================================
ERROR: test_action_send_announcement_dispatches_queue (apps.events.tests.unit.test_events.EventAdminTests.test_action_send_announcement_dispatches_queue)
----------------------------------------------------------------------
Traceback (most recent call last):
File "D:\GuilanCE\GuilanCEA-main\guilan-ace-backend\apps\events\tests\unit\test_events.py", line 591, in test_action_send_announcement_dispatches_queue
request = SimpleNamespace(method="POST", POST=data, user=self.create_user())
~~~~~~~~~~~~~~~~^^
File "D:\GuilanCE\GuilanCEA-main\guilan-ace-backend\apps\events\tests\unit\test_events.py", line 169, in create_user
return User.objects.create_user(
~~~~~~~~~~~~~~~~~~~~~~~~^
email=f"user_{unique}@example.com",
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
username=f"user_{unique[:10]}",
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
password="pass1234",
^^^^^^^^^^^^^^^^^^^^
)
^
File "D:\GuilanCE\GuilanCEA-main\guilan-ace-backend\apps\users\models.py", line 25, in create_user
extra_fields["mobile"] = self._normalize_required_mobile(extra_fields.get("mobile"))
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\GuilanCE\GuilanCEA-main\guilan-ace-backend\apps\users\models.py", line 21, in _normalize_required_mobile
raise ValueError("The mobile number must be set")
ValueError: The mobile number must be set
======================================================================
ERROR: test_confirm_registrations_sets_status (apps.events.tests.unit.test_events.EventAdminTests.test_confirm_registrations_sets_status)
----------------------------------------------------------------------
Traceback (most recent call last):
File "D:\GuilanCE\GuilanCEA-main\guilan-ace-backend\apps\events\tests\unit\test_events.py", line 621, in test_confirm_registrations_sets_status
user = self.create_user()
File "D:\GuilanCE\GuilanCEA-main\guilan-ace-backend\apps\events\tests\unit\test_events.py", line 169, in create_user
return User.objects.create_user(
~~~~~~~~~~~~~~~~~~~~~~~~^
email=f"user_{unique}@example.com",
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
username=f"user_{unique[:10]}",
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
password="pass1234",
^^^^^^^^^^^^^^^^^^^^
)
^
File "D:\GuilanCE\GuilanCEA-main\guilan-ace-backend\apps\users\models.py", line 25, in create_user
extra_fields["mobile"] = self._normalize_required_mobile(extra_fields.get("mobile"))
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\GuilanCE\GuilanCEA-main\guilan-ace-backend\apps\users\models.py", line 21, in _normalize_required_mobile
raise ValueError("The mobile number must be set")
ValueError: The mobile number must be set
======================================================================
ERROR: test_resend_selected_emails_requeues_and_clears_error (apps.events.tests.unit.test_events.EventEmailLogAdminTests.test_resend_selected_emails_requeues_and_clears_error)
----------------------------------------------------------------------
Traceback (most recent call last):
File "D:\GuilanCE\GuilanCEA-main\guilan-ace-backend\apps\events\tests\unit\test_events.py", line 740, in test_resend_selected_emails_requeues_and_clears_error
user = self.create_user()
File "D:\GuilanCE\GuilanCEA-main\guilan-ace-backend\apps\events\tests\unit\test_events.py", line 169, in create_user
return User.objects.create_user(
~~~~~~~~~~~~~~~~~~~~~~~~^
email=f"user_{unique}@example.com",
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
username=f"user_{unique[:10]}",
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
password="pass1234",
^^^^^^^^^^^^^^^^^^^^
)
^
File "D:\GuilanCE\GuilanCEA-main\guilan-ace-backend\apps\users\models.py", line 25, in create_user
extra_fields["mobile"] = self._normalize_required_mobile(extra_fields.get("mobile"))
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\GuilanCE\GuilanCEA-main\guilan-ace-backend\apps\users\models.py", line 21, in _normalize_required_mobile
raise ValueError("The mobile number must be set")
ValueError: The mobile number must be set
======================================================================
ERROR: test_user_email_returns_dash_when_missing (apps.events.tests.unit.test_events.EventEmailLogAdminTests.test_user_email_returns_dash_when_missing)
----------------------------------------------------------------------
Traceback (most recent call last):
File "D:\GuilanCE\GuilanCEA-main\guilan-ace-backend\apps\events\tests\unit\test_events.py", line 728, in test_user_email_returns_dash_when_missing
user = self.create_user()
File "D:\GuilanCE\GuilanCEA-main\guilan-ace-backend\apps\events\tests\unit\test_events.py", line 169, in create_user
return User.objects.create_user(
~~~~~~~~~~~~~~~~~~~~~~~~^
email=f"user_{unique}@example.com",
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
username=f"user_{unique[:10]}",
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
password="pass1234",
^^^^^^^^^^^^^^^^^^^^
)
^
File "D:\GuilanCE\GuilanCEA-main\guilan-ace-backend\apps\users\models.py", line 25, in create_user
extra_fields["mobile"] = self._normalize_required_mobile(extra_fields.get("mobile"))
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\GuilanCE\GuilanCEA-main\guilan-ace-backend\apps\users\models.py", line 21, in _normalize_required_mobile
raise ValueError("The mobile number must be set")
ValueError: The mobile number must be set
======================================================================
ERROR: test_claim_creates_pending_log (apps.events.tests.unit.test_events.EventEmailLogModelTests.test_claim_creates_pending_log)
----------------------------------------------------------------------
Traceback (most recent call last):
File "D:\GuilanCE\GuilanCEA-main\guilan-ace-backend\apps\events\tests\unit\test_events.py", line 193, in test_claim_creates_pending_log
user = self.create_user()
File "D:\GuilanCE\GuilanCEA-main\guilan-ace-backend\apps\events\tests\unit\test_events.py", line 169, in create_user
return User.objects.create_user(
~~~~~~~~~~~~~~~~~~~~~~~~^
email=f"user_{unique}@example.com",
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
username=f"user_{unique[:10]}",
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
password="pass1234",
^^^^^^^^^^^^^^^^^^^^
)
^
File "D:\GuilanCE\GuilanCEA-main\guilan-ace-backend\apps\users\models.py", line 25, in create_user
extra_fields["mobile"] = self._normalize_required_mobile(extra_fields.get("mobile"))
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\GuilanCE\GuilanCEA-main\guilan-ace-backend\apps\users\models.py", line 21, in _normalize_required_mobile
raise ValueError("The mobile number must be set")
ValueError: The mobile number must be set
======================================================================
ERROR: test_claim_resets_failed_record (apps.events.tests.unit.test_events.EventEmailLogModelTests.test_claim_resets_failed_record)
----------------------------------------------------------------------
Traceback (most recent call last):
File "D:\GuilanCE\GuilanCEA-main\guilan-ace-backend\apps\events\tests\unit\test_events.py", line 239, in test_claim_resets_failed_record
user = self.create_user()
File "D:\GuilanCE\GuilanCEA-main\guilan-ace-backend\apps\events\tests\unit\test_events.py", line 169, in create_user
return User.objects.create_user(
~~~~~~~~~~~~~~~~~~~~~~~~^
email=f"user_{unique}@example.com",
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
username=f"user_{unique[:10]}",
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
password="pass1234",
^^^^^^^^^^^^^^^^^^^^
)
^
File "D:\GuilanCE\GuilanCEA-main\guilan-ace-backend\apps\users\models.py", line 25, in create_user
extra_fields["mobile"] = self._normalize_required_mobile(extra_fields.get("mobile"))
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\GuilanCE\GuilanCEA-main\guilan-ace-backend\apps\users\models.py", line 21, in _normalize_required_mobile
raise ValueError("The mobile number must be set")
ValueError: The mobile number must be set
======================================================================
ERROR: test_claim_returns_existing_pending_log (apps.events.tests.unit.test_events.EventEmailLogModelTests.test_claim_returns_existing_pending_log)
----------------------------------------------------------------------
Traceback (most recent call last):
File "D:\GuilanCE\GuilanCEA-main\guilan-ace-backend\apps\events\tests\unit\test_events.py", line 212, in test_claim_returns_existing_pending_log
user = self.create_user()
File "D:\GuilanCE\GuilanCEA-main\guilan-ace-backend\apps\events\tests\unit\test_events.py", line 169, in create_user
return User.objects.create_user(
~~~~~~~~~~~~~~~~~~~~~~~~^
email=f"user_{unique}@example.com",
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
username=f"user_{unique[:10]}",
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
password="pass1234",
^^^^^^^^^^^^^^^^^^^^
)
^
File "D:\GuilanCE\GuilanCEA-main\guilan-ace-backend\apps\users\models.py", line 25, in create_user
extra_fields["mobile"] = self._normalize_required_mobile(extra_fields.get("mobile"))
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\GuilanCE\GuilanCEA-main\guilan-ace-backend\apps\users\models.py", line 21, in _normalize_required_mobile
raise ValueError("The mobile number must be set")
ValueError: The mobile number must be set
======================================================================
ERROR: test_mark_failed_clears_sent_at_and_records_error (apps.events.tests.unit.test_events.EventEmailLogModelTests.test_mark_failed_clears_sent_at_and_records_error)
----------------------------------------------------------------------
Traceback (most recent call last):
File "D:\GuilanCE\GuilanCEA-main\guilan-ace-backend\apps\events\tests\unit\test_events.py", line 287, in test_mark_failed_clears_sent_at_and_records_error
user = self.create_user()
File "D:\GuilanCE\GuilanCEA-main\guilan-ace-backend\apps\events\tests\unit\test_events.py", line 169, in create_user
return User.objects.create_user(
~~~~~~~~~~~~~~~~~~~~~~~~^
email=f"user_{unique}@example.com",
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
username=f"user_{unique[:10]}",
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
password="pass1234",
^^^^^^^^^^^^^^^^^^^^
)
^
File "D:\GuilanCE\GuilanCEA-main\guilan-ace-backend\apps\users\models.py", line 25, in create_user
extra_fields["mobile"] = self._normalize_required_mobile(extra_fields.get("mobile"))
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\GuilanCE\GuilanCEA-main\guilan-ace-backend\apps\users\models.py", line 21, in _normalize_required_mobile
raise ValueError("The mobile number must be set")
ValueError: The mobile number must be set
======================================================================
ERROR: test_mark_sent_sets_sent_timestamp_and_status (apps.events.tests.unit.test_events.EventEmailLogModelTests.test_mark_sent_sets_sent_timestamp_and_status)
----------------------------------------------------------------------
Traceback (most recent call last):
File "D:\GuilanCE\GuilanCEA-main\guilan-ace-backend\apps\events\tests\unit\test_events.py", line 270, in test_mark_sent_sets_sent_timestamp_and_status
user = self.create_user()
File "D:\GuilanCE\GuilanCEA-main\guilan-ace-backend\apps\events\tests\unit\test_events.py", line 169, in create_user
return User.objects.create_user(
~~~~~~~~~~~~~~~~~~~~~~~~^
email=f"user_{unique}@example.com",
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
username=f"user_{unique[:10]}",
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
password="pass1234",
^^^^^^^^^^^^^^^^^^^^
)
^
File "D:\GuilanCE\GuilanCEA-main\guilan-ace-backend\apps\users\models.py", line 25, in create_user
extra_fields["mobile"] = self._normalize_required_mobile(extra_fields.get("mobile"))
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\GuilanCE\GuilanCEA-main\guilan-ace-backend\apps\users\models.py", line 21, in _normalize_required_mobile
raise ValueError("The mobile number must be set")
ValueError: The mobile number must be set
======================================================================
ERROR: test_current_attendees_count_filters_statuses (apps.events.tests.unit.test_events.EventModelTests.test_current_attendees_count_filters_statuses)
----------------------------------------------------------------------
Traceback (most recent call last):
File "D:\GuilanCE\GuilanCEA-main\guilan-ace-backend\apps\events\tests\unit\test_events.py", line 342, in test_current_attendees_count_filters_statuses
user_one = self.create_user()
File "D:\GuilanCE\GuilanCEA-main\guilan-ace-backend\apps\events\tests\unit\test_events.py", line 169, in create_user
return User.objects.create_user(
~~~~~~~~~~~~~~~~~~~~~~~~^
email=f"user_{unique}@example.com",
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
username=f"user_{unique[:10]}",
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
password="pass1234",
^^^^^^^^^^^^^^^^^^^^
)
^
File "D:\GuilanCE\GuilanCEA-main\guilan-ace-backend\apps\users\models.py", line 25, in create_user
extra_fields["mobile"] = self._normalize_required_mobile(extra_fields.get("mobile"))
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\GuilanCE\GuilanCEA-main\guilan-ace-backend\apps\users\models.py", line 21, in _normalize_required_mobile
raise ValueError("The mobile number must be set")
ValueError: The mobile number must be set
======================================================================
ERROR: test_has_available_slots_respects_capacity (apps.events.tests.unit.test_events.EventModelTests.test_has_available_slots_respects_capacity)
----------------------------------------------------------------------
Traceback (most recent call last):
File "D:\GuilanCE\GuilanCEA-main\guilan-ace-backend\apps\events\tests\unit\test_events.py", line 372, in test_has_available_slots_respects_capacity
user=self.create_user(),
~~~~~~~~~~~~~~~~^^
File "D:\GuilanCE\GuilanCEA-main\guilan-ace-backend\apps\events\tests\unit\test_events.py", line 169, in create_user
return User.objects.create_user(
~~~~~~~~~~~~~~~~~~~~~~~~^
email=f"user_{unique}@example.com",
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
username=f"user_{unique[:10]}",
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
password="pass1234",
^^^^^^^^^^^^^^^^^^^^
)
^
File "D:\GuilanCE\GuilanCEA-main\guilan-ace-backend\apps\users\models.py", line 25, in create_user
extra_fields["mobile"] = self._normalize_required_mobile(extra_fields.get("mobile"))
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\GuilanCE\GuilanCEA-main\guilan-ace-backend\apps\users\models.py", line 21, in _normalize_required_mobile
raise ValueError("The mobile number must be set")
ValueError: The mobile number must be set
======================================================================
ERROR: test_event_recipients_filters_by_status_and_email (apps.events.tests.unit.test_events.EventTaskBehaviorTests.test_event_recipients_filters_by_status_and_email)
----------------------------------------------------------------------
Traceback (most recent call last):
File "D:\GuilanCE\GuilanCEA-main\guilan-ace-backend\apps\events\tests\unit\test_events.py", line 397, in test_event_recipients_filters_by_status_and_email
verified = self.create_user()
File "D:\GuilanCE\GuilanCEA-main\guilan-ace-backend\apps\events\tests\unit\test_events.py", line 169, in create_user
return User.objects.create_user(
~~~~~~~~~~~~~~~~~~~~~~~~^
email=f"user_{unique}@example.com",
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
username=f"user_{unique[:10]}",
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
password="pass1234",
^^^^^^^^^^^^^^^^^^^^
)
^
File "D:\GuilanCE\GuilanCEA-main\guilan-ace-backend\apps\users\models.py", line 25, in create_user
extra_fields["mobile"] = self._normalize_required_mobile(extra_fields.get("mobile"))
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\GuilanCE\GuilanCEA-main\guilan-ace-backend\apps\users\models.py", line 21, in _normalize_required_mobile
raise ValueError("The mobile number must be set")
ValueError: The mobile number must be set
======================================================================
ERROR: test_send_registration_confirmation_email_sends_message (apps.events.tests.unit.test_events.EventTaskBehaviorTests.test_send_registration_confirmation_email_sends_message)
----------------------------------------------------------------------
Traceback (most recent call last):
File "D:\GuilanCE\GuilanCEA-main\guilan-ace-backend\.venv\Lib\site-packages\django\test\utils.py", line 456, in inner
return func(*args, **kwargs)
File "C:\Users\Eight\AppData\Local\Programs\Python\Python313\Lib\unittest\mock.py", line 1420, in patched
with self.decoration_helper(patched,
~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^
args,
^^^^^
keywargs) as (newargs, newkeywargs):
^^^^^^^^^
File "C:\Users\Eight\AppData\Local\Programs\Python\Python313\Lib\contextlib.py", line 141, in __enter__
return next(self.gen)
File "C:\Users\Eight\AppData\Local\Programs\Python\Python313\Lib\unittest\mock.py", line 1402, in decoration_helper
arg = exit_stack.enter_context(patching)
File "C:\Users\Eight\AppData\Local\Programs\Python\Python313\Lib\contextlib.py", line 530, in enter_context
result = _enter(cm)
File "C:\Users\Eight\AppData\Local\Programs\Python\Python313\Lib\unittest\mock.py", line 1475, in __enter__
self.target = self.getter()
~~~~~~~~~~~^^
File "C:\Users\Eight\AppData\Local\Programs\Python\Python313\Lib\pkgutil.py", line 528, in resolve_name
result = getattr(result, p)
AttributeError: module 'apps.events.tasks' has no attribute 'markdown'
======================================================================
ERROR: test_event_recipients_disregards_verification_flag (apps.events.tests.unit.test_events.EventTasksCoverageTests.test_event_recipients_disregards_verification_flag)
----------------------------------------------------------------------
Traceback (most recent call last):
File "D:\GuilanCE\GuilanCEA-main\guilan-ace-backend\apps\events\tests\unit\test_events.py", line 1044, in test_event_recipients_disregards_verification_flag
user = self.create_user()
File "D:\GuilanCE\GuilanCEA-main\guilan-ace-backend\apps\events\tests\unit\test_events.py", line 169, in create_user
return User.objects.create_user(
~~~~~~~~~~~~~~~~~~~~~~~~^
email=f"user_{unique}@example.com",
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
username=f"user_{unique[:10]}",
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
password="pass1234",
^^^^^^^^^^^^^^^^^^^^
)
^
File "D:\GuilanCE\GuilanCEA-main\guilan-ace-backend\apps\users\models.py", line 25, in create_user
extra_fields["mobile"] = self._normalize_required_mobile(extra_fields.get("mobile"))
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\GuilanCE\GuilanCEA-main\guilan-ace-backend\apps\users\models.py", line 21, in _normalize_required_mobile
raise ValueError("The mobile number must be set")
ValueError: The mobile number must be set
======================================================================
ERROR: test_queue_invites_to_non_registered_users_respects_filters (apps.events.tests.unit.test_events.EventTasksCoverageTests.test_queue_invites_to_non_registered_users_respects_filters)
----------------------------------------------------------------------
Traceback (most recent call last):
File "D:\GuilanCE\GuilanCEA-main\guilan-ace-backend\apps\events\tests\unit\test_events.py", line 1184, in test_queue_invites_to_non_registered_users_respects_filters
verified = self.create_user()
File "D:\GuilanCE\GuilanCEA-main\guilan-ace-backend\apps\events\tests\unit\test_events.py", line 169, in create_user
return User.objects.create_user(
~~~~~~~~~~~~~~~~~~~~~~~~^
email=f"user_{unique}@example.com",
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
username=f"user_{unique[:10]}",
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
password="pass1234",
^^^^^^^^^^^^^^^^^^^^
)
^
File "D:\GuilanCE\GuilanCEA-main\guilan-ace-backend\apps\users\models.py", line 25, in create_user
extra_fields["mobile"] = self._normalize_required_mobile(extra_fields.get("mobile"))
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\GuilanCE\GuilanCEA-main\guilan-ace-backend\apps\users\models.py", line 21, in _normalize_required_mobile
raise ValueError("The mobile number must be set")
ValueError: The mobile number must be set
======================================================================
ERROR: test_send_event_announcement_to_user_handles_failure (apps.events.tests.unit.test_events.EventTasksCoverageTests.test_send_event_announcement_to_user_handles_failure)
----------------------------------------------------------------------
Traceback (most recent call last):
File "D:\GuilanCE\GuilanCEA-main\guilan-ace-backend\apps\events\tests\unit\test_events.py", line 1134, in test_send_event_announcement_to_user_handles_failure
user = self.create_user()
File "D:\GuilanCE\GuilanCEA-main\guilan-ace-backend\apps\events\tests\unit\test_events.py", line 169, in create_user
return User.objects.create_user(
~~~~~~~~~~~~~~~~~~~~~~~~^
email=f"user_{unique}@example.com",
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
username=f"user_{unique[:10]}",
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
password="pass1234",
^^^^^^^^^^^^^^^^^^^^
)
^
File "D:\GuilanCE\GuilanCEA-main\guilan-ace-backend\apps\users\models.py", line 25, in create_user
extra_fields["mobile"] = self._normalize_required_mobile(extra_fields.get("mobile"))
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\GuilanCE\GuilanCEA-main\guilan-ace-backend\apps\users\models.py", line 21, in _normalize_required_mobile
raise ValueError("The mobile number must be set")
ValueError: The mobile number must be set
======================================================================
ERROR: test_send_event_announcement_to_user_handles_soft_time_limit (apps.events.tests.unit.test_events.EventTasksCoverageTests.test_send_event_announcement_to_user_handles_soft_time_limit)
----------------------------------------------------------------------
Traceback (most recent call last):
File "D:\GuilanCE\GuilanCEA-main\guilan-ace-backend\apps\events\tests\unit\test_events.py", line 1119, in test_send_event_announcement_to_user_handles_soft_time_limit
user = self.create_user()
File "D:\GuilanCE\GuilanCEA-main\guilan-ace-backend\apps\events\tests\unit\test_events.py", line 169, in create_user
return User.objects.create_user(
~~~~~~~~~~~~~~~~~~~~~~~~^
email=f"user_{unique}@example.com",
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
username=f"user_{unique[:10]}",
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
password="pass1234",
^^^^^^^^^^^^^^^^^^^^
)
^
File "D:\GuilanCE\GuilanCEA-main\guilan-ace-backend\apps\users\models.py", line 25, in create_user
extra_fields["mobile"] = self._normalize_required_mobile(extra_fields.get("mobile"))
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\GuilanCE\GuilanCEA-main\guilan-ace-backend\apps\users\models.py", line 21, in _normalize_required_mobile
raise ValueError("The mobile number must be set")
ValueError: The mobile number must be set
======================================================================
ERROR: test_send_event_announcement_to_user_marks_sent (apps.events.tests.unit.test_events.EventTasksCoverageTests.test_send_event_announcement_to_user_marks_sent)
----------------------------------------------------------------------
Traceback (most recent call last):
File "D:\GuilanCE\GuilanCEA-main\guilan-ace-backend\apps\events\tests\unit\test_events.py", line 884, in test_send_event_announcement_to_user_marks_sent
user = self.create_user()
File "D:\GuilanCE\GuilanCEA-main\guilan-ace-backend\apps\events\tests\unit\test_events.py", line 169, in create_user
return User.objects.create_user(
~~~~~~~~~~~~~~~~~~~~~~~~^
email=f"user_{unique}@example.com",
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
username=f"user_{unique[:10]}",
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
password="pass1234",
^^^^^^^^^^^^^^^^^^^^
)
^
File "D:\GuilanCE\GuilanCEA-main\guilan-ace-backend\apps\users\models.py", line 25, in create_user
extra_fields["mobile"] = self._normalize_required_mobile(extra_fields.get("mobile"))
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\GuilanCE\GuilanCEA-main\guilan-ace-backend\apps\users\models.py", line 21, in _normalize_required_mobile
raise ValueError("The mobile number must be set")
ValueError: The mobile number must be set
======================================================================
ERROR: test_send_event_reminder_to_user_marks_sent (apps.events.tests.unit.test_events.EventTasksCoverageTests.test_send_event_reminder_to_user_marks_sent)
----------------------------------------------------------------------
Traceback (most recent call last):
File "D:\GuilanCE\GuilanCEA-main\guilan-ace-backend\apps\events\tests\unit\test_events.py", line 1101, in test_send_event_reminder_to_user_marks_sent
user = self.create_user()
File "D:\GuilanCE\GuilanCEA-main\guilan-ace-backend\apps\events\tests\unit\test_events.py", line 169, in create_user
return User.objects.create_user(
~~~~~~~~~~~~~~~~~~~~~~~~^
email=f"user_{unique}@example.com",
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
username=f"user_{unique[:10]}",
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
password="pass1234",
^^^^^^^^^^^^^^^^^^^^
)
^
File "D:\GuilanCE\GuilanCEA-main\guilan-ace-backend\apps\users\models.py", line 25, in create_user
extra_fields["mobile"] = self._normalize_required_mobile(extra_fields.get("mobile"))
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\GuilanCE\GuilanCEA-main\guilan-ace-backend\apps\users\models.py", line 21, in _normalize_required_mobile
raise ValueError("The mobile number must be set")
ValueError: The mobile number must be set
======================================================================
ERROR: test_send_invite_to_user_handles_failure (apps.events.tests.unit.test_events.EventTasksCoverageTests.test_send_invite_to_user_handles_failure)
----------------------------------------------------------------------
Traceback (most recent call last):
File "D:\GuilanCE\GuilanCEA-main\guilan-ace-backend\apps\events\tests\unit\test_events.py", line 1150, in test_send_invite_to_user_handles_failure
user = self.create_user()
File "D:\GuilanCE\GuilanCEA-main\guilan-ace-backend\apps\events\tests\unit\test_events.py", line 169, in create_user
return User.objects.create_user(
~~~~~~~~~~~~~~~~~~~~~~~~^
email=f"user_{unique}@example.com",
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
username=f"user_{unique[:10]}",
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
password="pass1234",
^^^^^^^^^^^^^^^^^^^^
)
^
File "D:\GuilanCE\GuilanCEA-main\guilan-ace-backend\apps\users\models.py", line 25, in create_user
extra_fields["mobile"] = self._normalize_required_mobile(extra_fields.get("mobile"))
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\GuilanCE\GuilanCEA-main\guilan-ace-backend\apps\users\models.py", line 21, in _normalize_required_mobile
raise ValueError("The mobile number must be set")
ValueError: The mobile number must be set
======================================================================
ERROR: test_send_invite_to_user_sends_email (apps.events.tests.unit.test_events.EventTasksCoverageTests.test_send_invite_to_user_sends_email)
----------------------------------------------------------------------
Traceback (most recent call last):
File "D:\GuilanCE\GuilanCEA-main\guilan-ace-backend\apps\events\tests\unit\test_events.py", line 944, in test_send_invite_to_user_sends_email
target_user = self.create_user()
File "D:\GuilanCE\GuilanCEA-main\guilan-ace-backend\apps\events\tests\unit\test_events.py", line 169, in create_user
return User.objects.create_user(
~~~~~~~~~~~~~~~~~~~~~~~~^
email=f"user_{unique}@example.com",
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
username=f"user_{unique[:10]}",
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
password="pass1234",
^^^^^^^^^^^^^^^^^^^^
)
^
File "D:\GuilanCE\GuilanCEA-main\guilan-ace-backend\apps\users\models.py", line 25, in create_user
extra_fields["mobile"] = self._normalize_required_mobile(extra_fields.get("mobile"))
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\GuilanCE\GuilanCEA-main\guilan-ace-backend\apps\users\models.py", line 21, in _normalize_required_mobile
raise ValueError("The mobile number must be set")
ValueError: The mobile number must be set
======================================================================
ERROR: test_send_invite_to_user_skips_when_claimed (apps.events.tests.unit.test_events.EventTasksCoverageTests.test_send_invite_to_user_skips_when_claimed)
----------------------------------------------------------------------
Traceback (most recent call last):
File "D:\GuilanCE\GuilanCEA-main\guilan-ace-backend\apps\events\tests\unit\test_events.py", line 936, in test_send_invite_to_user_skips_when_claimed
mock.patch("apps.events.tasks.User.objects.get", return_value=self.create_user()), \
~~~~~~~~~~~~~~~~^^
File "D:\GuilanCE\GuilanCEA-main\guilan-ace-backend\apps\events\tests\unit\test_events.py", line 169, in create_user
return User.objects.create_user(
~~~~~~~~~~~~~~~~~~~~~~~~^
email=f"user_{unique}@example.com",
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
username=f"user_{unique[:10]}",
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
password="pass1234",
^^^^^^^^^^^^^^^^^^^^
)
^
File "D:\GuilanCE\GuilanCEA-main\guilan-ace-backend\apps\users\models.py", line 25, in create_user
extra_fields["mobile"] = self._normalize_required_mobile(extra_fields.get("mobile"))
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\GuilanCE\GuilanCEA-main\guilan-ace-backend\apps\users\models.py", line 21, in _normalize_required_mobile
raise ValueError("The mobile number must be set")
ValueError: The mobile number must be set
======================================================================
ERROR: test_send_registration_cancellation_email_retries_on_failure (apps.events.tests.unit.test_events.EventTasksCoverageTests.test_send_registration_cancellation_email_retries_on_failure)
----------------------------------------------------------------------
Traceback (most recent call last):
File "D:\GuilanCE\GuilanCEA-main\guilan-ace-backend\apps\events\tests\unit\test_events.py", line 797, in test_send_registration_cancellation_email_retries_on_failure
mock.patch("apps.events.tasks.EmailMultiAlternatives", mock_email_class), \
~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Eight\AppData\Local\Programs\Python\Python313\Lib\unittest\mock.py", line 1491, in __enter__
original, local = self.get_original()
~~~~~~~~~~~~~~~~~^^
File "C:\Users\Eight\AppData\Local\Programs\Python\Python313\Lib\unittest\mock.py", line 1464, in get_original
raise AttributeError(
"%s does not have the attribute %r" % (target, name)
)
AttributeError: <module 'apps.events.tasks' from 'D:\\GuilanCE\\GuilanCEA-main\\guilan-ace-backend\\apps\\events\\tasks.py'> does not have the attribute 'EmailMultiAlternatives'
======================================================================
ERROR: test_send_registration_cancellation_email_returns_when_email_missing (apps.events.tests.unit.test_events.EventTasksCoverageTests.test_send_registration_cancellation_email_returns_when_email_missing)
----------------------------------------------------------------------
Traceback (most recent call last):
File "D:\GuilanCE\GuilanCEA-main\guilan-ace-backend\apps\events\tests\unit\test_events.py", line 780, in test_send_registration_cancellation_email_returns_when_email_missing
mock.patch("apps.events.tasks.EmailMultiAlternatives") as mock_email:
~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Eight\AppData\Local\Programs\Python\Python313\Lib\unittest\mock.py", line 1491, in __enter__
original, local = self.get_original()
~~~~~~~~~~~~~~~~~^^
File "C:\Users\Eight\AppData\Local\Programs\Python\Python313\Lib\unittest\mock.py", line 1464, in get_original
raise AttributeError(
"%s does not have the attribute %r" % (target, name)
)
AttributeError: <module 'apps.events.tasks' from 'D:\\GuilanCE\\GuilanCEA-main\\guilan-ace-backend\\apps\\events\\tasks.py'> does not have the attribute 'EmailMultiAlternatives'
======================================================================
ERROR: test_send_registration_confirmation_email_retries_on_failure (apps.events.tests.unit.test_events.EventTasksCoverageTests.test_send_registration_confirmation_email_retries_on_failure)
----------------------------------------------------------------------
Traceback (most recent call last):
File "D:\GuilanCE\GuilanCEA-main\guilan-ace-backend\apps\events\tests\unit\test_events.py", line 1033, in test_send_registration_confirmation_email_retries_on_failure
mock.patch("apps.events.tasks.EmailMultiAlternatives", mock_email_class), \
~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Eight\AppData\Local\Programs\Python\Python313\Lib\unittest\mock.py", line 1491, in __enter__
original, local = self.get_original()
~~~~~~~~~~~~~~~~~^^
File "C:\Users\Eight\AppData\Local\Programs\Python\Python313\Lib\unittest\mock.py", line 1464, in get_original
raise AttributeError(
"%s does not have the attribute %r" % (target, name)
)
AttributeError: <module 'apps.events.tasks' from 'D:\\GuilanCE\\GuilanCEA-main\\guilan-ace-backend\\apps\\events\\tasks.py'> does not have the attribute 'EmailMultiAlternatives'
======================================================================
ERROR: test_send_registration_confirmation_email_skips_without_email (apps.events.tests.unit.test_events.EventTasksCoverageTests.test_send_registration_confirmation_email_skips_without_email)
----------------------------------------------------------------------
Traceback (most recent call last):
File "D:\GuilanCE\GuilanCEA-main\guilan-ace-backend\apps\events\tests\unit\test_events.py", line 1016, in test_send_registration_confirmation_email_skips_without_email
mock.patch("apps.events.tasks.EmailMultiAlternatives") as mock_email:
~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Eight\AppData\Local\Programs\Python\Python313\Lib\unittest\mock.py", line 1491, in __enter__
original, local = self.get_original()
~~~~~~~~~~~~~~~~~^^
File "C:\Users\Eight\AppData\Local\Programs\Python\Python313\Lib\unittest\mock.py", line 1464, in get_original
raise AttributeError(
"%s does not have the attribute %r" % (target, name)
)
AttributeError: <module 'apps.events.tasks' from 'D:\\GuilanCE\\GuilanCEA-main\\guilan-ace-backend\\apps\\events\\tasks.py'> does not have the attribute 'EmailMultiAlternatives'
======================================================================
ERROR: test_send_skyroom_credentials_individual_task_retries_on_failure (apps.events.tests.unit.test_events.EventTasksCoverageTests.test_send_skyroom_credentials_individual_task_retries_on_failure)
----------------------------------------------------------------------
Traceback (most recent call last):
File "D:\GuilanCE\GuilanCEA-main\guilan-ace-backend\apps\events\tests\unit\test_events.py", line 1066, in test_send_skyroom_credentials_individual_task_retries_on_failure
mock.patch("apps.events.tasks.EmailMultiAlternatives", mock.MagicMock(return_value=mock.MagicMock(send=mock.Mock(side_effect=RuntimeError("boom"))))), \
~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Eight\AppData\Local\Programs\Python\Python313\Lib\unittest\mock.py", line 1491, in __enter__
original, local = self.get_original()
~~~~~~~~~~~~~~~~~^^
File "C:\Users\Eight\AppData\Local\Programs\Python\Python313\Lib\unittest\mock.py", line 1464, in get_original
raise AttributeError(
"%s does not have the attribute %r" % (target, name)
)
AttributeError: <module 'apps.events.tasks' from 'D:\\GuilanCE\\GuilanCEA-main\\guilan-ace-backend\\apps\\events\\tasks.py'> does not have the attribute 'EmailMultiAlternatives'
======================================================================
ERROR: test_send_skyroom_credentials_individual_task_sends_email (apps.events.tests.unit.test_events.EventTasksCoverageTests.test_send_skyroom_credentials_individual_task_sends_email)
----------------------------------------------------------------------
Traceback (most recent call last):
File "D:\GuilanCE\GuilanCEA-main\guilan-ace-backend\apps\events\tests\unit\test_events.py", line 823, in test_send_skyroom_credentials_individual_task_sends_email
mock.patch("apps.events.tasks.EmailMultiAlternatives", mock.MagicMock(return_value=email_instance)), \
~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Eight\AppData\Local\Programs\Python\Python313\Lib\unittest\mock.py", line 1491, in __enter__
original, local = self.get_original()
~~~~~~~~~~~~~~~~~^^
File "C:\Users\Eight\AppData\Local\Programs\Python\Python313\Lib\unittest\mock.py", line 1464, in get_original
raise AttributeError(
"%s does not have the attribute %r" % (target, name)
)
AttributeError: <module 'apps.events.tasks' from 'D:\\GuilanCE\\GuilanCEA-main\\guilan-ace-backend\\apps\\events\\tasks.py'> does not have the attribute 'EmailMultiAlternatives'
======================================================================
ERROR: test_send_skyroom_credentials_to_user_handles_failure (apps.events.tests.unit.test_events.EventTasksCoverageTests.test_send_skyroom_credentials_to_user_handles_failure)
----------------------------------------------------------------------
Traceback (most recent call last):
File "D:\GuilanCE\GuilanCEA-main\guilan-ace-backend\apps\events\tests\unit\test_events.py", line 1165, in test_send_skyroom_credentials_to_user_handles_failure
user = self.create_user()
File "D:\GuilanCE\GuilanCEA-main\guilan-ace-backend\apps\events\tests\unit\test_events.py", line 169, in create_user
return User.objects.create_user(
~~~~~~~~~~~~~~~~~~~~~~~~^
email=f"user_{unique}@example.com",
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
username=f"user_{unique[:10]}",
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
password="pass1234",
^^^^^^^^^^^^^^^^^^^^
)
^
File "D:\GuilanCE\GuilanCEA-main\guilan-ace-backend\apps\users\models.py", line 25, in create_user
extra_fields["mobile"] = self._normalize_required_mobile(extra_fields.get("mobile"))
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\GuilanCE\GuilanCEA-main\guilan-ace-backend\apps\users\models.py", line 21, in _normalize_required_mobile
raise ValueError("The mobile number must be set")
ValueError: The mobile number must be set
======================================================================
ERROR: test_send_skyroom_credentials_to_user_sends_email (apps.events.tests.unit.test_events.EventTasksCoverageTests.test_send_skyroom_credentials_to_user_sends_email)
----------------------------------------------------------------------
Traceback (most recent call last):
File "D:\GuilanCE\GuilanCEA-main\guilan-ace-backend\apps\events\tests\unit\test_events.py", line 996, in test_send_skyroom_credentials_to_user_sends_email
mock.patch("apps.events.tasks.render_to_string", return_value="<p>ok</p>"), \
~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Eight\AppData\Local\Programs\Python\Python313\Lib\unittest\mock.py", line 1491, in __enter__
original, local = self.get_original()
~~~~~~~~~~~~~~~~~^^
File "C:\Users\Eight\AppData\Local\Programs\Python\Python313\Lib\unittest\mock.py", line 1464, in get_original
raise AttributeError(
"%s does not have the attribute %r" % (target, name)
)
AttributeError: <module 'apps.events.tasks' from 'D:\\GuilanCE\\GuilanCEA-main\\guilan-ace-backend\\apps\\events\\tasks.py'> does not have the attribute 'render_to_string'
======================================================================
ERROR: test_action_email_selected_sends_and_redirects (apps.events.tests.unit.test_events.RegistrationAdminTests.test_action_email_selected_sends_and_redirects)
----------------------------------------------------------------------
Traceback (most recent call last):
File "D:\GuilanCE\GuilanCEA-main\guilan-ace-backend\apps\events\tests\unit\test_events.py", line 691, in test_action_email_selected_sends_and_redirects
user=self.create_user(),
~~~~~~~~~~~~~~~~^^
File "D:\GuilanCE\GuilanCEA-main\guilan-ace-backend\apps\events\tests\unit\test_events.py", line 169, in create_user
return User.objects.create_user(
~~~~~~~~~~~~~~~~~~~~~~~~^
email=f"user_{unique}@example.com",
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
username=f"user_{unique[:10]}",
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
password="pass1234",
^^^^^^^^^^^^^^^^^^^^
)
^
File "D:\GuilanCE\GuilanCEA-main\guilan-ace-backend\apps\users\models.py", line 25, in create_user
extra_fields["mobile"] = self._normalize_required_mobile(extra_fields.get("mobile"))
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\GuilanCE\GuilanCEA-main\guilan-ace-backend\apps\users\models.py", line 21, in _normalize_required_mobile
raise ValueError("The mobile number must be set")
ValueError: The mobile number must be set
======================================================================
ERROR: test_action_send_skyroom_credentials_queues_task (apps.events.tests.unit.test_events.RegistrationAdminTests.test_action_send_skyroom_credentials_queues_task)
----------------------------------------------------------------------
Traceback (most recent call last):
File "D:\GuilanCE\GuilanCEA-main\guilan-ace-backend\apps\events\tests\unit\test_events.py", line 709, in test_action_send_skyroom_credentials_queues_task
user=self.create_user(),
~~~~~~~~~~~~~~~~^^
File "D:\GuilanCE\GuilanCEA-main\guilan-ace-backend\apps\events\tests\unit\test_events.py", line 169, in create_user
return User.objects.create_user(
~~~~~~~~~~~~~~~~~~~~~~~~^
email=f"user_{unique}@example.com",
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
username=f"user_{unique[:10]}",
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
password="pass1234",
^^^^^^^^^^^^^^^^^^^^
)
^
File "D:\GuilanCE\GuilanCEA-main\guilan-ace-backend\apps\users\models.py", line 25, in create_user
extra_fields["mobile"] = self._normalize_required_mobile(extra_fields.get("mobile"))
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\GuilanCE\GuilanCEA-main\guilan-ace-backend\apps\users\models.py", line 21, in _normalize_required_mobile
raise ValueError("The mobile number must be set")
ValueError: The mobile number must be set
======================================================================
ERROR: test_cancel_registrations_sets_status (apps.events.tests.unit.test_events.RegistrationAdminTests.test_cancel_registrations_sets_status)
----------------------------------------------------------------------
Traceback (most recent call last):
File "D:\GuilanCE\GuilanCEA-main\guilan-ace-backend\apps\events\tests\unit\test_events.py", line 649, in test_cancel_registrations_sets_status
user=self.create_user(),
~~~~~~~~~~~~~~~~^^
File "D:\GuilanCE\GuilanCEA-main\guilan-ace-backend\apps\events\tests\unit\test_events.py", line 169, in create_user
return User.objects.create_user(
~~~~~~~~~~~~~~~~~~~~~~~~^
email=f"user_{unique}@example.com",
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
username=f"user_{unique[:10]}",
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
password="pass1234",
^^^^^^^^^^^^^^^^^^^^
)
^
File "D:\GuilanCE\GuilanCEA-main\guilan-ace-backend\apps\users\models.py", line 25, in create_user
extra_fields["mobile"] = self._normalize_required_mobile(extra_fields.get("mobile"))
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\GuilanCE\GuilanCEA-main\guilan-ace-backend\apps\users\models.py", line 21, in _normalize_required_mobile
raise ValueError("The mobile number must be set")
ValueError: The mobile number must be set
======================================================================
ERROR: test_mark_attended_updates_status (apps.events.tests.unit.test_events.RegistrationAdminTests.test_mark_attended_updates_status)
----------------------------------------------------------------------
Traceback (most recent call last):
File "D:\GuilanCE\GuilanCEA-main\guilan-ace-backend\apps\events\tests\unit\test_events.py", line 663, in test_mark_attended_updates_status
user=self.create_user(),
~~~~~~~~~~~~~~~~^^
File "D:\GuilanCE\GuilanCEA-main\guilan-ace-backend\apps\events\tests\unit\test_events.py", line 169, in create_user
return User.objects.create_user(
~~~~~~~~~~~~~~~~~~~~~~~~^
email=f"user_{unique}@example.com",
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
username=f"user_{unique[:10]}",
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
password="pass1234",
^^^^^^^^^^^^^^^^^^^^
)
^
File "D:\GuilanCE\GuilanCEA-main\guilan-ace-backend\apps\users\models.py", line 25, in create_user
extra_fields["mobile"] = self._normalize_required_mobile(extra_fields.get("mobile"))
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\GuilanCE\GuilanCEA-main\guilan-ace-backend\apps\users\models.py", line 21, in _normalize_required_mobile
raise ValueError("The mobile number must be set")
ValueError: The mobile number must be set
======================================================================
ERROR: test_restore_registrations_calls_restore (apps.events.tests.unit.test_events.RegistrationAdminTests.test_restore_registrations_calls_restore)
----------------------------------------------------------------------
Traceback (most recent call last):
File "D:\GuilanCE\GuilanCEA-main\guilan-ace-backend\apps\events\tests\unit\test_events.py", line 677, in test_restore_registrations_calls_restore
user=self.create_user(),
~~~~~~~~~~~~~~~~^^
File "D:\GuilanCE\GuilanCEA-main\guilan-ace-backend\apps\events\tests\unit\test_events.py", line 169, in create_user
return User.objects.create_user(
~~~~~~~~~~~~~~~~~~~~~~~~^
email=f"user_{unique}@example.com",
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
username=f"user_{unique[:10]}",
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
password="pass1234",
^^^^^^^^^^^^^^^^^^^^
)
^
File "D:\GuilanCE\GuilanCEA-main\guilan-ace-backend\apps\users\models.py", line 25, in create_user
extra_fields["mobile"] = self._normalize_required_mobile(extra_fields.get("mobile"))
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\GuilanCE\GuilanCEA-main\guilan-ace-backend\apps\users\models.py", line 21, in _normalize_required_mobile
raise ValueError("The mobile number must be set")
ValueError: The mobile number must be set
======================================================================
ERROR: setUpClass (apps.payments.tests.integration.test_payments.PaymentsAPIIntegrationTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "D:\GuilanCE\GuilanCEA-main\guilan-ace-backend\apps\payments\tests\integration\test_payments.py", line 26, in setUpTestData
cls.user = User.objects.create_user(
~~~~~~~~~~~~~~~~~~~~~~~~^
username="pay_user",
^^^^^^^^^^^^^^^^^^^^
email="pay.user@example.com",
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
password=cls.password,
^^^^^^^^^^^^^^^^^^^^^^
)
^
File "D:\GuilanCE\GuilanCEA-main\guilan-ace-backend\apps\users\models.py", line 25, in create_user
extra_fields["mobile"] = self._normalize_required_mobile(extra_fields.get("mobile"))
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\GuilanCE\GuilanCEA-main\guilan-ace-backend\apps\users\models.py", line 21, in _normalize_required_mobile
raise ValueError("The mobile number must be set")
ValueError: The mobile number must be set
======================================================================
ERROR: test_applicable_events_enforcement (apps.payments.tests.unit.test_payments.DiscountCodeModelTests.test_applicable_events_enforcement)
----------------------------------------------------------------------
Traceback (most recent call last):
File "D:\GuilanCE\GuilanCEA-main\guilan-ace-backend\apps\payments\tests\unit\test_payments.py", line 62, in setUp
self.user = self._create_user(is_email_verified=True)
~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\GuilanCE\GuilanCEA-main\guilan-ace-backend\apps\payments\tests\unit\test_payments.py", line 27, in _create_user
return User.objects.create_user(**data)
~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^
File "D:\GuilanCE\GuilanCEA-main\guilan-ace-backend\apps\users\models.py", line 25, in create_user
extra_fields["mobile"] = self._normalize_required_mobile(extra_fields.get("mobile"))
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\GuilanCE\GuilanCEA-main\guilan-ace-backend\apps\users\models.py", line 21, in _normalize_required_mobile
raise ValueError("The mobile number must be set")
ValueError: The mobile number must be set
======================================================================
ERROR: test_end_date_validation (apps.payments.tests.unit.test_payments.DiscountCodeModelTests.test_end_date_validation)
----------------------------------------------------------------------
Traceback (most recent call last):
File "D:\GuilanCE\GuilanCEA-main\guilan-ace-backend\apps\payments\tests\unit\test_payments.py", line 62, in setUp
self.user = self._create_user(is_email_verified=True)
~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\GuilanCE\GuilanCEA-main\guilan-ace-backend\apps\payments\tests\unit\test_payments.py", line 27, in _create_user
return User.objects.create_user(**data)
~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^
File "D:\GuilanCE\GuilanCEA-main\guilan-ace-backend\apps\users\models.py", line 25, in create_user
extra_fields["mobile"] = self._normalize_required_mobile(extra_fields.get("mobile"))
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\GuilanCE\GuilanCEA-main\guilan-ace-backend\apps\users\models.py", line 21, in _normalize_required_mobile
raise ValueError("The mobile number must be set")
ValueError: The mobile number must be set
======================================================================
ERROR: test_final_price_below_min_post_discount (apps.payments.tests.unit.test_payments.DiscountCodeModelTests.test_final_price_below_min_post_discount)
----------------------------------------------------------------------
Traceback (most recent call last):
File "D:\GuilanCE\GuilanCEA-main\guilan-ace-backend\apps\payments\tests\unit\test_payments.py", line 62, in setUp
self.user = self._create_user(is_email_verified=True)
~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\GuilanCE\GuilanCEA-main\guilan-ace-backend\apps\payments\tests\unit\test_payments.py", line 27, in _create_user
return User.objects.create_user(**data)
~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^
File "D:\GuilanCE\GuilanCEA-main\guilan-ace-backend\apps\users\models.py", line 25, in create_user
extra_fields["mobile"] = self._normalize_required_mobile(extra_fields.get("mobile"))
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\GuilanCE\GuilanCEA-main\guilan-ace-backend\apps\users\models.py", line 21, in _normalize_required_mobile
raise ValueError("The mobile number must be set")
ValueError: The mobile number must be set
======================================================================
ERROR: test_fixed_discount_type (apps.payments.tests.unit.test_payments.DiscountCodeModelTests.test_fixed_discount_type)
----------------------------------------------------------------------
Traceback (most recent call last):
File "D:\GuilanCE\GuilanCEA-main\guilan-ace-backend\apps\payments\tests\unit\test_payments.py", line 62, in setUp
self.user = self._create_user(is_email_verified=True)
~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\GuilanCE\GuilanCEA-main\guilan-ace-backend\apps\payments\tests\unit\test_payments.py", line 27, in _create_user
return User.objects.create_user(**data)
~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^
File "D:\GuilanCE\GuilanCEA-main\guilan-ace-backend\apps\users\models.py", line 25, in create_user
extra_fields["mobile"] = self._normalize_required_mobile(extra_fields.get("mobile"))
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\GuilanCE\GuilanCEA-main\guilan-ace-backend\apps\users\models.py", line 21, in _normalize_required_mobile
raise ValueError("The mobile number must be set")
ValueError: The mobile number must be set
======================================================================
ERROR: test_inactive_raises_error (apps.payments.tests.unit.test_payments.DiscountCodeModelTests.test_inactive_raises_error)
----------------------------------------------------------------------
Traceback (most recent call last):
File "D:\GuilanCE\GuilanCEA-main\guilan-ace-backend\apps\payments\tests\unit\test_payments.py", line 62, in setUp
self.user = self._create_user(is_email_verified=True)
~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\GuilanCE\GuilanCEA-main\guilan-ace-backend\apps\payments\tests\unit\test_payments.py", line 27, in _create_user
return User.objects.create_user(**data)
~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^
File "D:\GuilanCE\GuilanCEA-main\guilan-ace-backend\apps\users\models.py", line 25, in create_user
extra_fields["mobile"] = self._normalize_required_mobile(extra_fields.get("mobile"))
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\GuilanCE\GuilanCEA-main\guilan-ace-backend\apps\users\models.py", line 21, in _normalize_required_mobile
raise ValueError("The mobile number must be set")
ValueError: The mobile number must be set
======================================================================
ERROR: test_min_amount_guard (apps.payments.tests.unit.test_payments.DiscountCodeModelTests.test_min_amount_guard)
----------------------------------------------------------------------
Traceback (most recent call last):
File "D:\GuilanCE\GuilanCEA-main\guilan-ace-backend\apps\payments\tests\unit\test_payments.py", line 62, in setUp
self.user = self._create_user(is_email_verified=True)
~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\GuilanCE\GuilanCEA-main\guilan-ace-backend\apps\payments\tests\unit\test_payments.py", line 27, in _create_user
return User.objects.create_user(**data)
~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^
File "D:\GuilanCE\GuilanCEA-main\guilan-ace-backend\apps\users\models.py", line 25, in create_user
extra_fields["mobile"] = self._normalize_required_mobile(extra_fields.get("mobile"))
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\GuilanCE\GuilanCEA-main\guilan-ace-backend\apps\users\models.py", line 21, in _normalize_required_mobile
raise ValueError("The mobile number must be set")
ValueError: The mobile number must be set
======================================================================
ERROR: test_start_date_validation (apps.payments.tests.unit.test_payments.DiscountCodeModelTests.test_start_date_validation)
----------------------------------------------------------------------
Traceback (most recent call last):
File "D:\GuilanCE\GuilanCEA-main\guilan-ace-backend\apps\payments\tests\unit\test_payments.py", line 62, in setUp
self.user = self._create_user(is_email_verified=True)
~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\GuilanCE\GuilanCEA-main\guilan-ace-backend\apps\payments\tests\unit\test_payments.py", line 27, in _create_user
return User.objects.create_user(**data)
~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^
File "D:\GuilanCE\GuilanCEA-main\guilan-ace-backend\apps\users\models.py", line 25, in create_user
extra_fields["mobile"] = self._normalize_required_mobile(extra_fields.get("mobile"))
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\GuilanCE\GuilanCEA-main\guilan-ace-backend\apps\users\models.py", line 21, in _normalize_required_mobile
raise ValueError("The mobile number must be set")
ValueError: The mobile number must be set
======================================================================
ERROR: test_usage_limit_per_user (apps.payments.tests.unit.test_payments.DiscountCodeModelTests.test_usage_limit_per_user)
----------------------------------------------------------------------
Traceback (most recent call last):
File "D:\GuilanCE\GuilanCEA-main\guilan-ace-backend\apps\payments\tests\unit\test_payments.py", line 62, in setUp
self.user = self._create_user(is_email_verified=True)
~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\GuilanCE\GuilanCEA-main\guilan-ace-backend\apps\payments\tests\unit\test_payments.py", line 27, in _create_user
return User.objects.create_user(**data)
~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^
File "D:\GuilanCE\GuilanCEA-main\guilan-ace-backend\apps\users\models.py", line 25, in create_user
extra_fields["mobile"] = self._normalize_required_mobile(extra_fields.get("mobile"))
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\GuilanCE\GuilanCEA-main\guilan-ace-backend\apps\users\models.py", line 21, in _normalize_required_mobile
raise ValueError("The mobile number must be set")
ValueError: The mobile number must be set
======================================================================
ERROR: test_usage_limit_total (apps.payments.tests.unit.test_payments.DiscountCodeModelTests.test_usage_limit_total)
----------------------------------------------------------------------
Traceback (most recent call last):
File "D:\GuilanCE\GuilanCEA-main\guilan-ace-backend\apps\payments\tests\unit\test_payments.py", line 62, in setUp
self.user = self._create_user(is_email_verified=True)
~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\GuilanCE\GuilanCEA-main\guilan-ace-backend\apps\payments\tests\unit\test_payments.py", line 27, in _create_user
return User.objects.create_user(**data)
~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^
File "D:\GuilanCE\GuilanCEA-main\guilan-ace-backend\apps\users\models.py", line 25, in create_user
extra_fields["mobile"] = self._normalize_required_mobile(extra_fields.get("mobile"))
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\GuilanCE\GuilanCEA-main\guilan-ace-backend\apps\users\models.py", line 21, in _normalize_required_mobile
raise ValueError("The mobile number must be set")
ValueError: The mobile number must be set
======================================================================
ERROR: test_zero_price_returns_zero_discount (apps.payments.tests.unit.test_payments.DiscountCodeModelTests.test_zero_price_returns_zero_discount)
----------------------------------------------------------------------
Traceback (most recent call last):
File "D:\GuilanCE\GuilanCEA-main\guilan-ace-backend\apps\payments\tests\unit\test_payments.py", line 62, in setUp
self.user = self._create_user(is_email_verified=True)
~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\GuilanCE\GuilanCEA-main\guilan-ace-backend\apps\payments\tests\unit\test_payments.py", line 27, in _create_user
return User.objects.create_user(**data)
~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^
File "D:\GuilanCE\GuilanCEA-main\guilan-ace-backend\apps\users\models.py", line 25, in create_user
extra_fields["mobile"] = self._normalize_required_mobile(extra_fields.get("mobile"))
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\GuilanCE\GuilanCEA-main\guilan-ace-backend\apps\users\models.py", line 21, in _normalize_required_mobile
raise ValueError("The mobile number must be set")
ValueError: The mobile number must be set
======================================================================
ERROR: test_discount_resource_expands_events (apps.payments.tests.unit.test_payments.PaymentModelAndResourceTests.test_discount_resource_expands_events)
----------------------------------------------------------------------
Traceback (most recent call last):
File "D:\GuilanCE\GuilanCEA-main\guilan-ace-backend\apps\payments\tests\unit\test_payments.py", line 149, in setUp
self.user = self._create_user(is_email_verified=True)
~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\GuilanCE\GuilanCEA-main\guilan-ace-backend\apps\payments\tests\unit\test_payments.py", line 27, in _create_user
return User.objects.create_user(**data)
~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^
File "D:\GuilanCE\GuilanCEA-main\guilan-ace-backend\apps\users\models.py", line 25, in create_user
extra_fields["mobile"] = self._normalize_required_mobile(extra_fields.get("mobile"))
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\GuilanCE\GuilanCEA-main\guilan-ace-backend\apps\users\models.py", line 21, in _normalize_required_mobile
raise ValueError("The mobile number must be set")
ValueError: The mobile number must be set
======================================================================
ERROR: test_payment_clean_validates_amount (apps.payments.tests.unit.test_payments.PaymentModelAndResourceTests.test_payment_clean_validates_amount)
----------------------------------------------------------------------
Traceback (most recent call last):
File "D:\GuilanCE\GuilanCEA-main\guilan-ace-backend\apps\payments\tests\unit\test_payments.py", line 149, in setUp
self.user = self._create_user(is_email_verified=True)
~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\GuilanCE\GuilanCEA-main\guilan-ace-backend\apps\payments\tests\unit\test_payments.py", line 27, in _create_user
return User.objects.create_user(**data)
~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^
File "D:\GuilanCE\GuilanCEA-main\guilan-ace-backend\apps\users\models.py", line 25, in create_user
extra_fields["mobile"] = self._normalize_required_mobile(extra_fields.get("mobile"))
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\GuilanCE\GuilanCEA-main\guilan-ace-backend\apps\users\models.py", line 21, in _normalize_required_mobile
raise ValueError("The mobile number must be set")
ValueError: The mobile number must be set
======================================================================
ERROR: test_payment_resource_defers_user_event (apps.payments.tests.unit.test_payments.PaymentModelAndResourceTests.test_payment_resource_defers_user_event)
----------------------------------------------------------------------
Traceback (most recent call last):
File "D:\GuilanCE\GuilanCEA-main\guilan-ace-backend\apps\payments\tests\unit\test_payments.py", line 149, in setUp
self.user = self._create_user(is_email_verified=True)
~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\GuilanCE\GuilanCEA-main\guilan-ace-backend\apps\payments\tests\unit\test_payments.py", line 27, in _create_user
return User.objects.create_user(**data)
~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^
File "D:\GuilanCE\GuilanCEA-main\guilan-ace-backend\apps\users\models.py", line 25, in create_user
extra_fields["mobile"] = self._normalize_required_mobile(extra_fields.get("mobile"))
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\GuilanCE\GuilanCEA-main\guilan-ace-backend\apps\users\models.py", line 21, in _normalize_required_mobile
raise ValueError("The mobile number must be set")
ValueError: The mobile number must be set
======================================================================
ERROR: test_send_html_email_attaches_html_body (apps.events.tests.unit.test_events.EventTasksUtilityTests.test_send_html_email_attaches_html_body)
----------------------------------------------------------------------
Traceback (most recent call last):
File "D:\GuilanCE\GuilanCEA-main\guilan-ace-backend\.venv\Lib\site-packages\django\test\utils.py", line 456, in inner
return func(*args, **kwargs)
File "C:\Users\Eight\AppData\Local\Programs\Python\Python313\Lib\unittest\mock.py", line 1420, in patched
with self.decoration_helper(patched,
~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^
args,
^^^^^
keywargs) as (newargs, newkeywargs):
^^^^^^^^^
File "C:\Users\Eight\AppData\Local\Programs\Python\Python313\Lib\contextlib.py", line 141, in __enter__
return next(self.gen)
File "C:\Users\Eight\AppData\Local\Programs\Python\Python313\Lib\unittest\mock.py", line 1402, in decoration_helper
arg = exit_stack.enter_context(patching)
File "C:\Users\Eight\AppData\Local\Programs\Python\Python313\Lib\contextlib.py", line 530, in enter_context
result = _enter(cm)
File "C:\Users\Eight\AppData\Local\Programs\Python\Python313\Lib\unittest\mock.py", line 1491, in __enter__
original, local = self.get_original()
~~~~~~~~~~~~~~~~~^^
File "C:\Users\Eight\AppData\Local\Programs\Python\Python313\Lib\unittest\mock.py", line 1464, in get_original
raise AttributeError(
"%s does not have the attribute %r" % (target, name)
)
AttributeError: <module 'apps.events.tasks' from 'D:\\GuilanCE\\GuilanCEA-main\\guilan-ace-backend\\apps\\events\\tasks.py'> does not have the attribute 'EmailMultiAlternatives'
----------------------------------------------------------------------
Ran 148 tests in 1.881s
FAILED (errors=89)
Destroying test database for alias 'default'...
Found 158 test(s).
System check identified no issues (0 silenced).