============================= test session starts ==============================
platform darwin -- Python 3.11.5, pytest-7.4.0, pluggy-1.3.0
rootdir: /home/user/myproject
collected 8 items

tests/test_api.py::test_get_user PASSED
tests/test_api.py::test_create_record FAILED
tests/test_api.py::test_update_record ERROR
tests/test_models.py::test_user_attribute FAILED
tests/test_models.py::test_lookup_key FAILED
tests/test_utils.py::test_import_helper FAILED
tests/test_utils.py::test_timeout_call FAILED

=================================== FAILURES ===================================
_______________________ test_create_record _______________________

tests/test_api.py:45: in test_create_record
    result = api.create(data=None)
E   AttributeError: 'NoneType' object has no attribute 'validate'
E   
E   Make sure data is not None before calling create()

_______________________ test_update_record _______________________

tests/test_api.py:72: in test_update_record
    response = client.patch("/api/records/", payload)
E   TimeoutError: Request timed out after 30 seconds

_______________________ test_user_attribute _______________________

tests/test_models.py:28: in test_user_attribute
    user = UserModel(name=config['user_name'])
E   KeyError: 'user_name'

_______________________ test_lookup_key _______________________

tests/test_models.py:55: in test_lookup_key
    result = lookup(key=undefined_var)
E   NameError: name 'undefined_var' is not defined

_______________________ test_import_helper _______________________

tests/test_utils.py:12: in test_import_helper
    from myproject.helpers import missing_module
E   ImportError: cannot import name 'missing_module' from 'myproject.helpers'

_______________________ test_timeout_call _______________________

tests/test_utils.py:88: in test_timeout_call
    result = slow_function()
E   TimeoutError: Function execution exceeded 10 second limit

=========================== short test summary info ============================
FAILED tests/test_api.py::test_create_record - AttributeError: 'NoneType' object has no attribute 'validate'
FAILED tests/test_models.py::test_user_attribute - KeyError: 'user_name'
FAILED tests/test_models.py::test_lookup_key - NameError: name 'undefined_var' is not defined
FAILED tests/test_utils.py::test_import_helper - ImportError: cannot import name 'missing_module' from 'myproject.helpers'
FAILED tests/test_utils.py::test_timeout_call - TimeoutError: Function execution exceeded 10 second limit
ERROR tests/test_api.py::test_update_record - TimeoutError: Request timed out after 30 seconds
6 failed, 1 passed, 1 error in 12.34s
