Push on main #492
3 fail, 5 skipped, 136 pass in 1m 16s
Annotations
Check warning on line 0 in tests.integration.test_methods
github-actions / Python Tests
1 out of 4 runs failed: test_crud_look (tests.integration.test_methods)
artifacts/python-test-results-large-ubuntu-24_18/large-ubuntu.Looker-24_18.py3.x-integration.xml [took 0s]
Raw output
looker_sdk.error.SDKError:
message: An error has occurred.
documentation_url: https://cloud.google.com/looker/docs/r/err/4.0/500/post/looks
error_doc_url: https://static-a.cdn.looker.app/errorcodes/500.md
error details:
sdk = <looker_sdk.sdk.api40.methods.Looker40SDK object at 0x7fe6f34ced70>
looks = [{'deleted': False, 'description': 'An SDK test look about system activity', 'is_run_on_load': True, 'public': True, ...}]
@pytest.mark.usefixtures("remove_test_looks")
def test_crud_look(sdk: mtds.Looker40SDK, looks):
"""Test creating, retrieving, updating and deleting a look."""
for l in looks:
request = create_query_request(l["query"][0], "10")
query = sdk.create_query(request)
> look = sdk.create_look(
ml.WriteLookWithQuery(
title=l.get("title"),
description=l.get("description"),
deleted=l.get("deleted"),
is_run_on_load=l.get("is_run_on_load"),
public=l.get("public"),
query_id=query.id,
folder_id=l.get("folder_id") or str(sdk.me().personal_folder_id),
)
)
tests/integration/test_methods.py:352:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
looker_sdk/sdk/api40/methods.py:7157: in create_look
self.post(
looker_sdk/rtl/api_methods.py:188: in post
return self._return(response, structure)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <looker_sdk.sdk.api40.methods.Looker40SDK object at 0x7fe6f34ced70>
response = Response(ok=False, value=b'{"message":"An error has occurred.","documentation_url":"https://cloud.google.com/looker/docs/r/err/4.0/500/post/looks"}', response_mode=<ResponseMode.STRING: 2>, encoding='utf-8')
structure = <class 'looker_sdk.sdk.api40.models.LookWithQuery'>
def _return(self, response: transport.Response, structure: TStructure) -> TReturn:
encoding = response.encoding
if not response.ok:
value = response.value.decode(encoding=encoding)
sdk_error: error.SDKError
try:
sdk_error = self.deserialize(data=value, structure=error.SDKError) # type: ignore
helper = error.ErrorDocHelper()
(sdk_error.error_doc_url, sdk_error.error_doc) = (
helper.parse_and_lookup(sdk_error.documentation_url)
)
for e in sdk_error.errors:
(e.error_doc_url, e.error_doc) = helper.parse_and_lookup(
e.documentation_url
)
except serialize.DeserializeError:
raise error.SDKError(value)
> raise sdk_error
E looker_sdk.error.SDKError:
E message: An error has occurred.
E documentation_url: https://cloud.google.com/looker/docs/r/err/4.0/500/post/looks
E error_doc_url: https://static-a.cdn.looker.app/errorcodes/500.md
E error details:
looker_sdk/rtl/api_methods.py:101: SDKError
Check warning on line 0 in tests.integration.test_methods
github-actions / Python Tests
1 out of 4 runs failed: test_search_looks_title_fields_filter (tests.integration.test_methods)
artifacts/python-test-results-large-ubuntu-24_18/large-ubuntu.Looker-24_18.py3.x-integration.xml [took 0s]
Raw output
assert 0 > 0
+ where 0 = len([])
sdk = <looker_sdk.sdk.api40.methods.Looker40SDK object at 0x7fe6f34ced70>
def test_search_looks_title_fields_filter(sdk: mtds.Looker40SDK):
"""search_looks() should be able to filter on title."""
search_results = sdk.search_looks(title="An SDK%", fields="id, title")
assert isinstance(search_results, list)
> assert len(search_results) > 0
E assert 0 > 0
E + where 0 = len([])
tests/integration/test_methods.py:458: AssertionError
Check warning on line 0 in tests.integration.test_methods
github-actions / Python Tests
1 out of 4 runs failed: test_search_look_and_run (tests.integration.test_methods)
artifacts/python-test-results-large-ubuntu-24_18/large-ubuntu.Looker-24_18.py3.x-integration.xml [took 0s]
Raw output
assert 0 > 0
+ where 0 = len([])
sdk = <looker_sdk.sdk.api40.methods.Looker40SDK object at 0x7fe6f34ced70>
def test_search_look_and_run(sdk: mtds.Looker40SDK):
"""run_look() should return CSV and JSON
CSV will use column descriptions
JSON will use column names
JSON_LABEL will use column descriptions
"""
search_results = sdk.search_looks(title="An SDK Look", fields="id, title")
assert isinstance(search_results, list)
> assert len(search_results) > 0
E assert 0 > 0
E + where 0 = len([])
tests/integration/test_methods.py:474: AssertionError
Check notice on line 0 in .github
github-actions / Python Tests
5 skipped tests found
There are 5 skipped tests, see "Raw output" for the full list of skipped tests.
Raw output
tests.integration.test_methods ‑ test_validate_theme
tests.rtl.test_serialize ‑ test_deserialize_data_structure_mismatch[data0-Sequence]
tests.rtl.test_serialize ‑ test_deserialize_data_structure_mismatch[data0-structure0]
tests.rtl.test_serialize ‑ test_deserialize_data_structure_mismatch[data1-Model]
tests.rtl.test_serialize ‑ test_serialize_explict_null
Check notice on line 0 in .github
github-actions / Python Tests
144 tests found
There are 144 tests, see "Raw output" for the full list of tests.
Raw output
tests.integration.test_methods ‑ test_bad_user_search_returns_no_results
tests.integration.test_methods ‑ test_crud_dashboard
tests.integration.test_methods ‑ test_crud_look
tests.integration.test_methods ‑ test_crud_user
tests.integration.test_methods ‑ test_crud_user_dict
tests.integration.test_methods ‑ test_csv_user_id_list
tests.integration.test_methods ‑ test_delim_sequence
tests.integration.test_methods ‑ test_enum
tests.integration.test_methods ‑ test_it_creates_and_runs_query
tests.integration.test_methods ‑ test_it_matches_email_domain_and_returns_sorted
tests.integration.test_methods ‑ test_it_retrieves_session
tests.integration.test_methods ‑ test_it_runs_inline_query
tests.integration.test_methods ‑ test_it_updates_session
tests.integration.test_methods ‑ test_me_field_filters
tests.integration.test_methods ‑ test_me_returns_correct_result
tests.integration.test_methods ‑ test_png_svg_downloads
tests.integration.test_methods ‑ test_search_look_and_run
tests.integration.test_methods ‑ test_search_looks_fields_filter
tests.integration.test_methods ‑ test_search_looks_returns_looks
tests.integration.test_methods ‑ test_search_looks_title_fields_filter
tests.integration.test_methods ‑ test_search_users_matches_pattern
tests.integration.test_methods ‑ test_setting_default_color_collection
tests.integration.test_methods ‑ test_validate_theme
tests.integration.test_netrc ‑ test_netrc_does_not_override_ini_creds
tests.rtl.test_api_methods ‑ test_api_versioned_url_is_built_properly[/user-/api/4.0/user]
tests.rtl.test_api_methods ‑ test_api_versioned_url_is_built_properly[/user/1-/api/4.0/user/1]
tests.rtl.test_api_methods ‑ test_api_versioned_url_is_built_properly[user-/api/4.0/user]
tests.rtl.test_api_methods ‑ test_api_versioned_url_is_built_properly[user/1-/api/4.0/user/1]
tests.rtl.test_api_methods ‑ test_convert_query_params[test_query_params0-expected0]
tests.rtl.test_api_methods ‑ test_convert_query_params[test_query_params1-expected1]
tests.rtl.test_api_methods ‑ test_convert_query_params[test_query_params2-expected2]
tests.rtl.test_api_methods ‑ test_convert_query_params[test_query_params3-expected3]
tests.rtl.test_api_methods ‑ test_convert_query_params[test_query_params4-expected4]
tests.rtl.test_api_methods ‑ test_convert_query_params[test_query_params5-expected5]
tests.rtl.test_api_methods ‑ test_convert_query_params[test_query_params6-expected6]
tests.rtl.test_api_methods ‑ test_convert_query_params[test_query_params7-expected7]
tests.rtl.test_api_methods ‑ test_convert_query_params[test_query_params8-expected8]
tests.rtl.test_api_methods ‑ test_convert_query_params[test_query_params9-expected9]
tests.rtl.test_api_methods ‑ test_get_serialized[-]
tests.rtl.test_api_methods ‑ test_get_serialized[None-None]
tests.rtl.test_api_methods ‑ test_get_serialized[some body text-some body text]
tests.rtl.test_api_methods ‑ test_get_serialized[test_body2-[1, 2, 3]]
tests.rtl.test_api_methods ‑ test_get_serialized[test_body3-["a", "b", "c"]]
tests.rtl.test_api_methods ‑ test_get_serialized[test_body4-{"foo": "bar"}]
tests.rtl.test_api_methods ‑ test_get_serialized[test_body6-{"workspace_id": "dev"}]
tests.rtl.test_api_methods ‑ test_get_serialized[test_body7-[{"workspace_id": "dev"}, {"workspace_id": "dev"}]]
tests.rtl.test_api_methods ‑ test_return[test_response0-Union-\x00\x01\x02\x03\x04\x05\x06\x07\x08\t]
tests.rtl.test_api_methods ‑ test_return[test_response0-test_structure0-\x00\x01\x02\x03\x04\x05\x06\x07\x08\t]
tests.rtl.test_api_methods ‑ test_return[test_response1-Union-some response text]
tests.rtl.test_api_methods ‑ test_return[test_response1-test_structure1-some response text]
tests.rtl.test_api_methods ‑ test_return[test_response2-Union-\u0626]
tests.rtl.test_api_methods ‑ test_return[test_response2-test_structure2-\u0626]
tests.rtl.test_api_methods ‑ test_return[test_response3-None-None]
tests.rtl.test_api_methods ‑ test_return[test_response4-ApiVersion-expected4]
tests.rtl.test_api_methods ‑ test_return_raises_an_SDKError_for_bad_responses
tests.rtl.test_api_settings ‑ test_configure_with_no_file
tests.rtl.test_api_settings ‑ test_env_verify_ssl_maps_properly[-True]
tests.rtl.test_api_settings ‑ test_env_verify_ssl_maps_properly[0-False]
tests.rtl.test_api_settings ‑ test_env_verify_ssl_maps_properly[1-True]
tests.rtl.test_api_settings ‑ test_env_verify_ssl_maps_properly[f-False]
tests.rtl.test_api_settings ‑ test_env_verify_ssl_maps_properly[n-False]
tests.rtl.test_api_settings ‑ test_env_verify_ssl_maps_properly[no-False]
tests.rtl.test_api_settings ‑ test_env_verify_ssl_maps_properly[t-True]
tests.rtl.test_api_settings ‑ test_env_verify_ssl_maps_properly[true-True]
tests.rtl.test_api_settings ‑ test_env_verify_ssl_maps_properly[y-True]
tests.rtl.test_api_settings ‑ test_env_verify_ssl_maps_properly[yes-True]
tests.rtl.test_api_settings ‑ test_it_assigns_defaults_to_empty_settings
tests.rtl.test_api_settings ‑ test_it_fails_if_required_settings_are_not_found[Empty config file]
tests.rtl.test_api_settings ‑ test_it_fails_if_required_settings_are_not_found[Required settings are empty strings]
tests.rtl.test_api_settings ‑ test_it_fails_when_env_variables_are_defined_but_empty
tests.rtl.test_api_settings ‑ test_it_fails_with_a_bad_file_path
tests.rtl.test_api_settings ‑ test_it_fails_with_a_bad_section_name
tests.rtl.test_api_settings ‑ test_it_retrieves_section_by_name[section=Looker]
tests.rtl.test_api_settings ‑ test_it_retrieves_section_by_name[section=OLD_API]
tests.rtl.test_api_settings ‑ test_it_unquotes_quoted_config_file_vars
tests.rtl.test_api_settings ‑ test_it_unquotes_quoted_env_var_values
tests.rtl.test_api_settings ‑ test_settings_defaults_to_looker_section
tests.rtl.test_api_settings ‑ test_settings_from_env_variables_override_config_file[Empty config file]
tests.rtl.test_api_settings ‑ test_settings_from_env_variables_override_config_file[Overriding with env variables]
tests.rtl.test_auth_session ‑ test_auto_login
tests.rtl.test_auth_session ‑ test_auto_login_with_transport_options
tests.rtl.test_auth_session ‑ test_env_variables_override_config_file_credentials[--your_API3_client_id-your_API3_client_secret]
tests.rtl.test_auth_session ‑ test_env_variables_override_config_file_credentials[id123-secret123-id123-secret123]
tests.rtl.test_auth_session ‑ test_it_fails_with_missing_credentials[EMPTY_STRING_CREDENTIALS--]
tests.rtl.test_auth_session ‑ test_it_fails_with_missing_credentials[EMPTY_STRING_CREDENTIALS--secret123]
tests.rtl.test_auth_session ‑ test_it_fails_with_missing_credentials[EMPTY_STRING_CREDENTIALS-id123-]
tests.rtl.test_auth_session ‑ test_it_fails_with_missing_credentials[NO_CREDENTIALS--]
tests.rtl.test_auth_session ‑ test_it_fails_with_missing_credentials[NO_CREDENTIALS--secret123]
tests.rtl.test_auth_session ‑ test_it_fails_with_missing_credentials[NO_CREDENTIALS-id123-]
tests.rtl.test_auth_session ‑ test_login_sudo_login_sudo
tests.rtl.test_auth_session ‑ test_oauth_create_auth_code_request_url
tests.rtl.test_auth_session ‑ test_oauth_redeem_auth_code
tests.rtl.test_auth_session ‑ test_sudo_login_auto_logs_in
tests.rtl.test_auth_session ‑ test_sudo_logout_leaves_logged_in
tests.rtl.test_auth_token ‑ test_defaults_with_empty_token
tests.rtl.test_auth_token ‑ test_is_active_with_full_token
tests.rtl.test_auth_token ‑ test_lag_time_is_used
tests.rtl.test_requests_transport ‑ test_configure
tests.rtl.test_requests_transport ‑ test_request_error
tests.rtl.test_requests_transport ‑ test_request_not_ok[headers0-utf-8-ResponseMode.STRING]
tests.rtl.test_requests_transport ‑ test_request_not_ok[headers1-utf-8-ResponseMode.BINARY]
tests.rtl.test_requests_transport ‑ test_request_not_ok[headers2-latin1-ResponseMode.STRING]
tests.rtl.test_requests_transport ‑ test_request_not_ok[headers3-arabic-ResponseMode.STRING]
tests.rtl.test_requests_transport ‑ test_request_not_ok[headers4-utf-8-ResponseMode.STRING]
tests.rtl.test_requests_transport ‑ test_request_not_ok[headers5-utf-8-ResponseMode.BINARY]
tests.rtl.test_requests_transport ‑ test_request_ok[headers0-utf-8-ResponseMode.STRING]
tests.rtl.test_requests_transport ‑ test_request_ok[headers1-utf-8-ResponseMode.BINARY]
tests.rtl.test_requests_transport ‑ test_request_ok[headers2-latin1-ResponseMode.STRING]
tests.rtl.test_requests_transport ‑ test_request_ok[headers3-arabic-ResponseMode.STRING]
tests.rtl.test_requests_transport ‑ test_request_ok[headers4-utf-8-ResponseMode.STRING]
tests.rtl.test_requests_transport ‑ test_request_ok[headers5-utf-8-ResponseMode.BINARY]
tests.rtl.test_serialize ‑ test_deserialize_data_structure_mismatch[data0-Sequence]
tests.rtl.test_serialize ‑ test_deserialize_data_structure_mismatch[data0-structure0]
tests.rtl.test_serialize ‑ test_deserialize_data_structure_mismatch[data1-Model]
tests.rtl.test_serialize ‑ test_deserialize_list
tests.rtl.test_serialize ‑ test_deserialize_partial
tests.rtl.test_serialize ‑ test_deserialize_single
tests.rtl.test_serialize ‑ test_deserialize_with_null
tests.rtl.test_serialize ‑ test_dict_clear
tests.rtl.test_serialize ‑ test_dict_contains
tests.rtl.test_serialize ‑ test_dict_copy
tests.rtl.test_serialize ‑ test_dict_delitem
tests.rtl.test_serialize ‑ test_dict_get
tests.rtl.test_serialize ‑ test_dict_getitem_child
tests.rtl.test_serialize ‑ test_dict_getitem_enum
tests.rtl.test_serialize ‑ test_dict_getitem_simple
tests.rtl.test_serialize ‑ test_dict_items
tests.rtl.test_serialize ‑ test_dict_iter
tests.rtl.test_serialize ‑ test_dict_keys
tests.rtl.test_serialize ‑ test_dict_pop
tests.rtl.test_serialize ‑ test_dict_popitem
tests.rtl.test_serialize ‑ test_dict_setdefault
tests.rtl.test_serialize ‑ test_dict_setitem_child
tests.rtl.test_serialize ‑ test_dict_setitem_enum
tests.rtl.test_serialize ‑ test_dict_setitem_simple
tests.rtl.test_serialize ‑ test_dict_update
tests.rtl.test_serialize ‑ test_dict_values
tests.rtl.test_serialize ‑ test_safe_enum_deserialization
tests.rtl.test_serialize ‑ test_serialize_explict_null
tests.rtl.test_serialize ‑ test_serialize_partial
tests.rtl.test_serialize ‑ test_serialize_sequence
tests.rtl.test_serialize ‑ test_serialize_single
tests.rtl.test_transport ‑ test_binary_mode
tests.rtl.test_transport ‑ test_string_mode