def test_get_models_from_empty_app_list(): assert get_models() == []
def test_get_models_from_apps_without_models_module(): assert get_models() == []
def test_get_models_with_error_in_importing(mock_pyclbr): mock_pyclbr.side_effect = AttributeError() assert get_models() == []
def test_get_models_not_found_apps_dir(): # we don't have "apps" folder inside project root so models list is empty assert get_models() == []
def test_get_models(): assert get_models() == [User, Token]