Conghao97's picture tcftrees's picture
ProgramGen release
d086025
Raw History Blame Contribute Delete
18.6 kB
{
"passed_ptp": [
"tests/test_socrata.py::test_client",
"tests/test_socrata.py::test_client_warning",
"tests/test_socrata.py::test_context_manager",
"tests/test_socrata.py::test_context_manager_no_domain_exception",
"tests/test_socrata.py::test_context_manager_timeout_exception",
"tests/test_socrata.py::test_client_oauth",
"tests/test_socrata.py::test_get_unicode",
"tests/test_socrata.py::test_update_metadata",
"tests/test_socrata.py::test_upsert_exception",
"tests/test_socrata.py::test_upsert",
"tests/test_socrata.py::test_replace",
"tests/test_socrata.py::test_delete",
"tests/test_socrata.py::test_create",
"tests/test_socrata.py::test_set_permission",
"tests/test_socrata.py::test_publish",
"tests/test_socrata.py::test_import_non_data_file",
"tests/test_socrata.py::test_replace_non_data_file",
"tests/test_utils.py::test_raise_for_status[200-Success-OK-False]",
"tests/test_utils.py::test_raise_for_status[300-Redirection-Multiple Choices-False]",
"tests/test_utils.py::test_raise_for_status[400-Client Error-Bad Request-True]",
"tests/test_utils.py::test_raise_for_status[500-Server Error-Internal Server Error-True]",
"tests/test_utils.py::test_raise_for_status[600-Foo Bar-Here be dragons-False]",
"tests/test_utils.py::test_clear_empty_values[elems0-result0]",
"tests/test_utils.py::test_clear_empty_values[elems1-result1]",
"tests/test_utils.py::test_clear_empty_values[elems2-result2]",
"tests/test_utils.py::test_format_old_api_request_exception",
"tests/test_utils.py::test_format_old_api_request[abcd-None-/api/views/abcd]",
"tests/test_utils.py::test_format_old_api_request[abcd-json-/api/views/abcd.json]",
"tests/test_utils.py::test_format_old_api_request[None-json-/api/views.json]",
"tests/test_utils.py::test_format_new_api_request[abcd-None-json-/resource/abcd.json]",
"tests/test_utils.py::test_format_new_api_request[abcd-123-json-/resource/abcd/123.json]",
"tests/test_utils.py::test_format_new_api_request_exception",
"tests/test_utils.py::test_authentication_validation_exceptions[me-None-123456]",
"tests/test_utils.py::test_authentication_validation_exceptions[None-pass-123456]",
"tests/test_utils.py::test_authentication_validation_exceptions[me-pass-123456]",
"tests/test_utils.py::test_authentication_validation[me-pass-None]",
"tests/test_utils.py::test_authentication_validation[None-None-93738]",
"tests/test_utils.py::test_download_file",
"tests/test_version.py::test_version"
],
"test_files": [
"tests/conftest.py",
"tests/test_socrata.py",
"tests/test_utils.py",
"tests/test_version.py"
],
"test_command": [
"bash",
"-lc",
"set -uo pipefail\nrun=(python3 -m pytest -vv --continue-on-collection-errors -o addopts= tests/test_socrata.py tests/test_utils.py tests/test_version.py)\nif [ -n \"${COVERAGE_FILE:-}\" ]; then run=(python3 -m coverage run --source=. -m pytest -vv --continue-on-collection-errors -o addopts= tests/test_socrata.py tests/test_utils.py tests/test_version.py); fi\ncollect=(python3 -m pytest -q -o addopts= tests/test_socrata.py tests/test_utils.py tests/test_version.py)\ncollected_output=$(\"${collect[@]}\" --collect-only)\ncollect_rc=$?\nif [ \"$collect_rc\" -ne 0 ] && [ \"$collect_rc\" -ne 5 ]; then\n printf \"%s\\n\" \"$collected_output\" >&2\n printf \"[programgen] test collection failed with exit code %s\\n\" \"$collect_rc\" >&2\n exit \"$collect_rc\"\nfi\nmapfile -t collected < <(printf \"%s\\n\" \"$collected_output\" | sed -n '/::/p' | sed 's/[[:space:]]*$//')\nif [ \"${#collected[@]}\" -gt 500 ]; then\n while IFS= read -r id; do run+=(\"--deselect=$id\"); done < <(printf \"%s\\n\" \"${collected[@]}\" | awk -F'::' -v limit=500 '{f=$1; n[f]++; idx[f,n[f]]=NR; all[NR]=$0; if(!(f in seen)){seen[f]=1; order[++m]=f}} END{d=1; c=0; while(c<limit){a=0; for(i=1;i<=m;i++){f=order[i]; if(d<=n[f]){keep[idx[f,d]]=1; c++; a=1; if(c>=limit) break}} if(!a) break; d++} for(r=1;r<=NR;r++) if(!(r in keep)) print all[r]}')\nfi\n\"${run[@]}\"; exit $?"
],
"test_payload_contract": {
"schema_version": "programgen.test-payload-contract.v1",
"test_files": [
"tests/conftest.py",
"tests/test_socrata.py",
"tests/test_utils.py",
"tests/test_version.py"
],
"test_command": [
"bash",
"-lc",
"set -uo pipefail\nrun=(python3 -m pytest -vv --continue-on-collection-errors -o addopts= tests/test_socrata.py tests/test_utils.py tests/test_version.py)\nif [ -n \"${COVERAGE_FILE:-}\" ]; then run=(python3 -m coverage run --source=. -m pytest -vv --continue-on-collection-errors -o addopts= tests/test_socrata.py tests/test_utils.py tests/test_version.py); fi\ncollect=(python3 -m pytest -q -o addopts= tests/test_socrata.py tests/test_utils.py tests/test_version.py)\ncollected_output=$(\"${collect[@]}\" --collect-only)\ncollect_rc=$?\nif [ \"$collect_rc\" -ne 0 ] && [ \"$collect_rc\" -ne 5 ]; then\n printf \"%s\\n\" \"$collected_output\" >&2\n printf \"[programgen] test collection failed with exit code %s\\n\" \"$collect_rc\" >&2\n exit \"$collect_rc\"\nfi\nmapfile -t collected < <(printf \"%s\\n\" \"$collected_output\" | sed -n '/::/p' | sed 's/[[:space:]]*$//')\nif [ \"${#collected[@]}\" -gt 500 ]; then\n while IFS= read -r id; do run+=(\"--deselect=$id\"); done < <(printf \"%s\\n\" \"${collected[@]}\" | awk -F'::' -v limit=500 '{f=$1; n[f]++; idx[f,n[f]]=NR; all[NR]=$0; if(!(f in seen)){seen[f]=1; order[++m]=f}} END{d=1; c=0; while(c<limit){a=0; for(i=1;i<=m;i++){f=order[i]; if(d<=n[f]){keep[idx[f,d]]=1; c++; a=1; if(c>=limit) break}} if(!a) break; d++} for(r=1;r<=NR;r++) if(!(r in keep)) print all[r]}')\nfi\n\"${run[@]}\"; exit $?"
],
"text_fixtures": [
"tests/cassettes/test_socrata/test_get.yaml",
"tests/cassettes/test_socrata/test_get_all.yaml",
"tests/cassettes/test_socrata/test_get_all_hit_limit.yaml",
"tests/cassettes/test_socrata/test_get_csv.yaml",
"tests/cassettes/test_socrata/test_get_datasets.yaml",
"tests/cassettes/test_socrata/test_get_metadata_and_attachments.yaml",
"tests/cassettes/test_socrata/test_get_metadata_and_attachments_missing.yaml",
"tests/cassettes/test_socrata/test_get_missing.yaml",
"tests/cassettes/test_socrata/test_get_xml.yaml",
"tests/test_data/403_response_json.txt",
"tests/test_data/create_foobar.txt",
"tests/test_data/empty.txt",
"tests/test_data/get_songs_unicode.txt",
"tests/test_data/replace_songs.txt",
"tests/test_data/successblobres.txt",
"tests/test_data/update_song_metadata.txt",
"tests/test_data/upsert_songs.txt"
],
"binary_fixtures": [
"tests/test_data/nondatasetfile.zip"
],
"nonportable_absolute_paths": [],
"required_external_commands": [],
"declared_console_scripts": [],
"unresolved_external_commands": []
},
"unit_test": [
"tests.test_socrata::test_client",
"tests.test_socrata::test_client_warning",
"tests.test_socrata::test_context_manager",
"tests.test_socrata::test_context_manager_no_domain_exception",
"tests.test_socrata::test_context_manager_timeout_exception",
"tests.test_socrata::test_client_oauth",
"tests.test_socrata::test_get",
"tests.test_socrata::test_get_csv",
"tests.test_socrata::test_get_xml",
"tests.test_socrata::test_get_missing",
"tests.test_socrata::test_get_all",
"tests.test_socrata::test_get_all_hit_limit",
"tests.test_socrata::test_get_unicode",
"tests.test_socrata::test_get_datasets",
"tests.test_socrata::test_get_datasets_bad_domain",
"tests.test_socrata::test_get_metadata_and_attachments",
"tests.test_socrata::test_get_metadata_and_attachments_missing",
"tests.test_socrata::test_update_metadata",
"tests.test_socrata::test_upsert_exception",
"tests.test_socrata::test_upsert",
"tests.test_socrata::test_replace",
"tests.test_socrata::test_delete",
"tests.test_socrata::test_create",
"tests.test_socrata::test_set_permission",
"tests.test_socrata::test_publish",
"tests.test_socrata::test_import_non_data_file",
"tests.test_socrata::test_replace_non_data_file",
"tests.test_utils::test_raise_for_status",
"tests.test_utils::test_clear_empty_values",
"tests.test_utils::test_format_old_api_request_exception",
"tests.test_utils::test_format_old_api_request",
"tests.test_utils::test_format_new_api_request",
"tests.test_utils::test_format_new_api_request_exception",
"tests.test_utils::test_authentication_validation_exceptions",
"tests.test_utils::test_authentication_validation",
"tests.test_utils::test_download_file",
"tests.test_version::test_version"
],
"expected_test_count": 39,
"measured_test_count": 39,
"enumerated_test_count": 37,
"test_count_source": "measured-suite",
"python_install_contract": {
"strategy": "editable-install",
"project_root": ".",
"package_roots": [
"."
],
"build_backend": "setuptools.build_meta",
"build_system_requires": [
"setuptools >= 77.0.3"
],
"editable": true,
"project_dependencies": [
"requests>=2.28.2"
],
"editable_requires": [],
"runtime_strategy": "editable-install",
"runtime_build_inputs": [
"README.md"
],
"build_context_inputs": [],
"distribution_name": "sodapy",
"evidence": [
"./pyproject.toml",
"build-tools-isolated-from-runtime-lock"
],
"errors": [],
"isolate_build_backend": true,
"schema_version": "programgen.python-install-contract.v7"
},
"test_binary_files": [
"tests/test_data/nondatasetfile.zip"
],
"artifact_contract_version": "programgen.forward-harbor.v6",
"renderer_schema_version": "programgen.forward-renderer.v4",
"test_import_contract": [
{
"test_file": "tests/conftest.py",
"source_file": null,
"import_root": "pytest",
"definition_path": null,
"required_import_path": "pytest",
"import_statement": "import pytest",
"symbol": null,
"kind": "external",
"classification": "external"
},
{
"test_file": "tests/conftest.py",
"source_file": null,
"import_root": "sys",
"definition_path": null,
"required_import_path": "sys",
"import_statement": "import sys",
"symbol": null,
"kind": "external",
"classification": "external"
},
{
"test_file": "tests/test_socrata.py",
"source_file": null,
"import_root": "inspect",
"definition_path": null,
"required_import_path": "inspect",
"import_statement": "import inspect",
"symbol": null,
"kind": "external",
"classification": "external"
},
{
"test_file": "tests/test_socrata.py",
"source_file": null,
"import_root": "json",
"definition_path": null,
"required_import_path": "json",
"import_statement": "import json",
"symbol": null,
"kind": "external",
"classification": "external"
},
{
"test_file": "tests/test_socrata.py",
"source_file": null,
"import_root": "logging",
"definition_path": null,
"required_import_path": "logging",
"import_statement": "import logging",
"symbol": null,
"kind": "external",
"classification": "external"
},
{
"test_file": "tests/test_socrata.py",
"source_file": null,
"import_root": "os",
"definition_path": null,
"required_import_path": "os.path",
"import_statement": "import os.path",
"symbol": null,
"kind": "external",
"classification": "external"
},
{
"test_file": "tests/test_socrata.py",
"source_file": null,
"import_root": "pytest",
"definition_path": null,
"required_import_path": "pytest",
"import_statement": "import pytest",
"symbol": null,
"kind": "external",
"classification": "external"
},
{
"test_file": "tests/test_socrata.py",
"source_file": null,
"import_root": "requests",
"definition_path": null,
"required_import_path": "requests",
"import_statement": "import requests",
"symbol": null,
"kind": "external",
"classification": "external"
},
{
"test_file": "tests/test_socrata.py",
"source_file": null,
"import_root": "requests_mock",
"definition_path": null,
"required_import_path": "requests_mock",
"import_statement": "import requests_mock",
"symbol": null,
"kind": "external",
"classification": "external"
},
{
"test_file": "tests/test_socrata.py",
"source_file": "sodapy/socrata.py",
"import_root": "sodapy",
"definition_path": "sodapy.socrata.Socrata",
"required_import_path": "sodapy.Socrata",
"import_statement": "from sodapy import Socrata",
"symbol": "Socrata",
"kind": "class",
"classification": "local-resolved"
},
{
"test_file": "tests/test_socrata.py",
"source_file": "sodapy/constants.py",
"import_root": "sodapy",
"definition_path": "sodapy.constants.DEFAULT_API_PATH",
"required_import_path": "sodapy.constants.DEFAULT_API_PATH",
"import_statement": "from sodapy.constants import DEFAULT_API_PATH, OLD_API_PATH",
"symbol": "DEFAULT_API_PATH",
"kind": "constant",
"classification": "local-resolved"
},
{
"test_file": "tests/test_socrata.py",
"source_file": "sodapy/constants.py",
"import_root": "sodapy",
"definition_path": "sodapy.constants.OLD_API_PATH",
"required_import_path": "sodapy.constants.OLD_API_PATH",
"import_statement": "from sodapy.constants import DEFAULT_API_PATH, OLD_API_PATH",
"symbol": "OLD_API_PATH",
"kind": "constant",
"classification": "local-resolved"
},
{
"test_file": "tests/test_utils.py",
"source_file": null,
"import_root": "pytest",
"definition_path": null,
"required_import_path": "pytest",
"import_statement": "import pytest",
"symbol": null,
"kind": "external",
"classification": "external"
},
{
"test_file": "tests/test_utils.py",
"source_file": null,
"import_root": "requests",
"definition_path": null,
"required_import_path": "requests",
"import_statement": "import requests",
"symbol": null,
"kind": "external",
"classification": "external"
},
{
"test_file": "tests/test_utils.py",
"source_file": null,
"import_root": "requests_mock",
"definition_path": null,
"required_import_path": "requests_mock",
"import_statement": "import requests_mock",
"symbol": null,
"kind": "external",
"classification": "external"
},
{
"test_file": "tests/test_utils.py",
"source_file": "sodapy/utils.py",
"import_root": "sodapy",
"definition_path": "sodapy.utils",
"required_import_path": "sodapy.utils",
"import_statement": "import sodapy.utils as utils",
"symbol": null,
"kind": "module",
"classification": "local-module"
},
{
"test_file": "tests/test_utils.py",
"source_file": "sodapy/utils.py",
"import_root": "sodapy",
"definition_path": "sodapy.utils.authentication_validation",
"required_import_path": "sodapy.utils.authentication_validation",
"import_statement": "import sodapy.utils as utils",
"symbol": "authentication_validation",
"kind": "function",
"classification": "local-resolved"
},
{
"test_file": "tests/test_utils.py",
"source_file": "sodapy/utils.py",
"import_root": "sodapy",
"definition_path": "sodapy.utils.clear_empty_values",
"required_import_path": "sodapy.utils.clear_empty_values",
"import_statement": "import sodapy.utils as utils",
"symbol": "clear_empty_values",
"kind": "function",
"classification": "local-resolved"
},
{
"test_file": "tests/test_utils.py",
"source_file": "sodapy/utils.py",
"import_root": "sodapy",
"definition_path": "sodapy.utils.download_file",
"required_import_path": "sodapy.utils.download_file",
"import_statement": "import sodapy.utils as utils",
"symbol": "download_file",
"kind": "function",
"classification": "local-resolved"
},
{
"test_file": "tests/test_utils.py",
"source_file": "sodapy/utils.py",
"import_root": "sodapy",
"definition_path": "sodapy.utils.format_new_api_request",
"required_import_path": "sodapy.utils.format_new_api_request",
"import_statement": "import sodapy.utils as utils",
"symbol": "format_new_api_request",
"kind": "function",
"classification": "local-resolved"
},
{
"test_file": "tests/test_utils.py",
"source_file": "sodapy/utils.py",
"import_root": "sodapy",
"definition_path": "sodapy.utils.format_old_api_request",
"required_import_path": "sodapy.utils.format_old_api_request",
"import_statement": "import sodapy.utils as utils",
"symbol": "format_old_api_request",
"kind": "function",
"classification": "local-resolved"
},
{
"test_file": "tests/test_utils.py",
"source_file": "sodapy/utils.py",
"import_root": "sodapy",
"definition_path": "sodapy.utils.raise_for_status",
"required_import_path": "sodapy.utils.raise_for_status",
"import_statement": "import sodapy.utils as utils",
"symbol": "raise_for_status",
"kind": "function",
"classification": "local-resolved"
},
{
"test_file": "tests/test_version.py",
"source_file": "sodapy/__init__.py",
"import_root": "sodapy",
"definition_path": "sodapy",
"required_import_path": "sodapy",
"import_statement": "import sodapy",
"symbol": null,
"kind": "module",
"classification": "local-module"
},
{
"test_file": "tests/test_version.py",
"source_file": "sodapy/__init__.py",
"import_root": "sodapy",
"definition_path": "sodapy.__version__",
"required_import_path": "sodapy.__version__",
"import_statement": "import sodapy",
"symbol": "__version__",
"kind": "constant",
"classification": "local-resolved"
}
],
"test_import_contract_digest": "ad5a91fc2f844bb5c98ddf2f92ad987cc533c220e594410cef401ed6eedde30f"
}