Coverage report: 81%

coverage.py v7.2.7, created at 2024-03-24 22:22 +0000

Module statements missing excluded branches partial coverage
databases/__init__.py 0 0 0 0 0 100%
databases/_compat.py 2 0 2 0 0 100%
databases/_serve.py 15 7 0 4 0 42%
databases/_types.py 10 0 0 0 0 100%
databases/constants.py 18 0 0 2 0 100%
databases/main.py 187 5 8 46 3 97%
databases/partials.py 7 0 0 0 0 100%
databases/sync_tests/__init__.py 0 0 0 0 0 100%
databases/sync_tests/arrays/__init__.py 0 0 0 0 0 100%
databases/sync_tests/arrays/push/__init__.py 0 0 0 0 0 100%
databases/sync_tests/arrays/push/test_bigint.py 9 0 0 0 0 100%
databases/sync_tests/arrays/push/test_bool.py 9 0 0 0 0 100%
databases/sync_tests/arrays/push/test_bytes.py 9 0 0 0 0 100%
databases/sync_tests/arrays/push/test_datetime.py 19 0 0 4 0 100%
databases/sync_tests/arrays/push/test_decimal.py 10 0 0 0 0 100%
databases/sync_tests/arrays/push/test_enum.py 10 0 0 0 0 100%
databases/sync_tests/arrays/push/test_float.py 9 0 0 0 0 100%
databases/sync_tests/arrays/push/test_int.py 9 0 0 0 0 100%
databases/sync_tests/arrays/push/test_json.py 9 0 0 0 0 100%
databases/sync_tests/arrays/push/test_string.py 9 0 0 0 0 100%
databases/sync_tests/arrays/test_bigint.py 35 0 0 2 0 100%
databases/sync_tests/arrays/test_bool.py 37 0 0 2 0 100%
databases/sync_tests/arrays/test_bytes.py 42 0 0 2 0 100%
databases/sync_tests/arrays/test_datetime.py 47 0 0 6 0 100%
databases/sync_tests/arrays/test_decimal.py 36 0 0 2 0 100%
databases/sync_tests/arrays/test_enum.py 36 0 0 2 0 100%
databases/sync_tests/arrays/test_float.py 35 0 0 2 0 100%
databases/sync_tests/arrays/test_int.py 35 0 0 2 0 100%
databases/sync_tests/arrays/test_json.py 37 0 0 2 0 100%
databases/sync_tests/arrays/test_string.py 35 0 0 2 0 100%
databases/sync_tests/conftest.py 20 0 1 0 0 100%
databases/sync_tests/test_batch.py 144 0 0 36 0 100%
databases/sync_tests/test_case_sensitivity.py 22 0 0 0 0 100%
databases/sync_tests/test_count.py 31 0 0 6 0 100%
databases/sync_tests/test_create.py 49 0 0 10 0 100%
databases/sync_tests/test_create_many.py 30 0 0 2 0 100%
databases/sync_tests/test_delete.py 19 0 0 0 0 100%
databases/sync_tests/test_delete_many.py 7 0 0 2 0 100%
databases/sync_tests/test_enum.py 31 1 0 2 1 94%
databases/sync_tests/test_errors.py 15 0 0 8 0 100%
databases/sync_tests/test_find_first.py 98 0 0 6 0 100%
databases/sync_tests/test_find_first_or_raise.py 80 0 0 12 0 100%
databases/sync_tests/test_find_many.py 118 0 0 12 0 100%
databases/sync_tests/test_find_unique.py 88 0 0 6 0 100%
databases/sync_tests/test_find_unique_or_raise.py 74 0 0 8 0 100%
databases/sync_tests/test_group_by.py 105 0 0 18 0 100%
databases/sync_tests/test_include.py 84 0 0 8 0 100%
databases/sync_tests/test_metrics.py 31 0 0 4 0 100%
databases/sync_tests/test_models.py 108 0 0 2 0 100%
databases/sync_tests/test_partials.py 44 0 0 2 0 100%
databases/sync_tests/test_raw_queries.py 73 0 0 10 0 100%
databases/sync_tests/test_transactions.py 90 0 19 26 0 100%
databases/sync_tests/test_update.py 79 0 7 4 0 100%
databases/sync_tests/test_update_many.py 36 0 0 0 0 100%
databases/sync_tests/test_upsert.py 11 0 0 0 0 100%
databases/sync_tests/types/__init__.py 0 0 0 0 0 100%
databases/sync_tests/types/raw_queries/__init__.py 0 0 0 0 0 100%
databases/sync_tests/types/raw_queries/arrays/__init__.py 0 0 0 0 0 100%
databases/sync_tests/types/raw_queries/arrays/test_bigint.py 18 0 2 0 0 100%
databases/sync_tests/types/raw_queries/arrays/test_string.py 21 0 2 0 0 100%
databases/sync_tests/types/raw_queries/test_bigint.py 18 0 2 0 0 100%
databases/sync_tests/types/raw_queries/test_bool.py 20 0 3 2 0 100%
databases/sync_tests/types/raw_queries/test_bytes.py 19 0 2 0 0 100%
databases/sync_tests/types/raw_queries/test_datetime.py 20 0 2 0 0 100%
databases/sync_tests/types/raw_queries/test_decimal.py 23 0 2 0 0 100%
databases/sync_tests/types/raw_queries/test_float.py 18 0 2 0 0 100%
databases/sync_tests/types/raw_queries/test_int.py 18 0 2 0 0 100%
databases/sync_tests/types/raw_queries/test_json.py 30 0 2 6 0 100%
databases/sync_tests/types/raw_queries/test_string.py 18 0 2 0 0 100%
databases/sync_tests/types/test_bigint.py 69 0 9 6 0 100%
databases/sync_tests/types/test_bool.py 31 0 0 4 0 100%
databases/sync_tests/types/test_bytes.py 67 0 0 4 0 100%
databases/sync_tests/types/test_compat.py 5 0 0 0 0 100%
databases/sync_tests/types/test_datetime.py 76 1 0 6 1 98%
databases/sync_tests/types/test_decimal.py 79 1 0 4 1 98%
databases/sync_tests/types/test_float.py 72 0 0 6 0 100%
databases/sync_tests/types/test_int.py 69 0 9 6 0 100%
databases/sync_tests/types/test_json.py 62 1 0 4 1 97%
databases/sync_tests/types/test_string.py 54 1 0 6 1 97%
databases/tests/__init__.py 0 0 0 0 0 100%
databases/tests/arrays/__init__.py 0 0 0 0 0 100%
databases/tests/arrays/push/__init__.py 0 0 0 0 0 100%
databases/tests/arrays/push/test_bigint.py 11 0 0 0 0 100%
databases/tests/arrays/push/test_bool.py 11 0 0 0 0 100%
databases/tests/arrays/push/test_bytes.py 11 0 0 0 0 100%
databases/tests/arrays/push/test_datetime.py 21 0 0 4 0 100%
databases/tests/arrays/push/test_decimal.py 12 0 0 0 0 100%
databases/tests/arrays/push/test_enum.py 12 0 0 0 0 100%
databases/tests/arrays/push/test_float.py 11 0 0 0 0 100%
databases/tests/arrays/push/test_int.py 11 0 0 0 0 100%
databases/tests/arrays/push/test_json.py 11 0 0 0 0 100%
databases/tests/arrays/push/test_string.py 11 0 0 0 0 100%
databases/tests/arrays/test_bigint.py 38 0 0 2 0 100%
databases/tests/arrays/test_bool.py 40 0 0 2 0 100%
databases/tests/arrays/test_bytes.py 46 0 0 2 0 100%
databases/tests/arrays/test_datetime.py 50 0 0 6 0 100%
databases/tests/arrays/test_decimal.py 39 0 0 2 0 100%
databases/tests/arrays/test_enum.py 39 0 0 2 0 100%
databases/tests/arrays/test_float.py 38 0 0 2 0 100%
databases/tests/arrays/test_int.py 38 0 0 2 0 100%
databases/tests/arrays/test_json.py 40 0 0 2 0 100%
databases/tests/arrays/test_string.py 38 0 0 2 0 100%
databases/tests/conftest.py 22 0 0 0 0 100%
databases/tests/test_batch.py 160 0 0 36 0 100%
databases/tests/test_case_sensitivity.py 24 0 0 0 0 100%
databases/tests/test_count.py 37 0 0 6 0 100%
databases/tests/test_create.py 57 0 0 10 0 100%
databases/tests/test_create_many.py 33 0 0 2 0 100%
databases/tests/test_delete.py 22 0 0 0 0 100%
databases/tests/test_delete_many.py 9 0 0 2 0 100%
databases/tests/test_enum.py 41 0 0 2 0 100%
databases/tests/test_errors.py 25 0 0 10 0 100%
databases/tests/test_find_first.py 105 0 0 6 0 100%
databases/tests/test_find_first_or_raise.py 86 0 0 12 0 100%
databases/tests/test_find_many.py 125 0 6 12 0 100%
databases/tests/test_find_unique.py 101 0 0 6 0 100%
databases/tests/test_find_unique_or_raise.py 87 0 0 8 0 100%
databases/tests/test_group_by.py 124 0 0 18 0 100%
databases/tests/test_include.py 91 0 0 8 0 100%
databases/tests/test_metrics.py 36 0 0 4 0 100%
databases/tests/test_models.py 121 0 0 2 0 100%
databases/tests/test_partials.py 49 0 0 2 0 100%
databases/tests/test_raw_queries.py 82 0 0 10 0 100%
databases/tests/test_transactions.py 101 0 19 26 0 100%
databases/tests/test_update.py 88 0 7 4 0 100%
databases/tests/test_update_many.py 39 0 0 0 0 100%
databases/tests/test_upsert.py 13 0 0 0 0 100%
databases/tests/types/__init__.py 0 0 0 0 0 100%
databases/tests/types/raw_queries/__init__.py 0 0 0 0 0 100%
databases/tests/types/raw_queries/arrays/__init__.py 0 0 0 0 0 100%
databases/tests/types/raw_queries/arrays/test_bigint.py 20 0 2 0 0 100%
databases/tests/types/raw_queries/arrays/test_string.py 23 0 2 0 0 100%
databases/tests/types/raw_queries/test_bigint.py 20 0 2 0 0 100%
databases/tests/types/raw_queries/test_bool.py 22 0 3 2 0 100%
databases/tests/types/raw_queries/test_bytes.py 21 0 2 0 0 100%
databases/tests/types/raw_queries/test_datetime.py 22 0 2 0 0 100%
databases/tests/types/raw_queries/test_decimal.py 25 0 2 0 0 100%
databases/tests/types/raw_queries/test_float.py 20 0 2 0 0 100%
databases/tests/types/raw_queries/test_int.py 20 0 2 0 0 100%
databases/tests/types/raw_queries/test_json.py 32 0 2 6 0 100%
databases/tests/types/raw_queries/test_string.py 20 0 2 0 0 100%
databases/tests/types/test_bigint.py 74 0 9 6 0 100%
databases/tests/types/test_bool.py 34 0 0 4 0 100%
databases/tests/types/test_bytes.py 77 0 0 6 0 100%
databases/tests/types/test_compat.py 5 0 0 0 0 100%
databases/tests/types/test_datetime.py 82 0 0 6 0 100%
databases/tests/types/test_decimal.py 82 0 0 4 0 100%
databases/tests/types/test_float.py 76 0 0 6 0 100%
databases/tests/types/test_int.py 74 0 9 6 0 100%
databases/tests/types/test_json.py 66 0 0 4 0 100%
databases/tests/types/test_string.py 57 0 0 6 0 100%
databases/utils.py 44 0 4 2 0 100%
src/prisma/__init__.py 26 1 0 4 1 93%
src/prisma/__main__.py 3 0 0 2 1 80%
src/prisma/_async_http.py 45 6 0 10 0 78%
src/prisma/_base_client.py 209 14 5 52 8 90%
src/prisma/_builder.py 367 13 7 94 7 95%
src/prisma/_compat.py 138 5 33 60 5 95%
src/prisma/_config.py 49 0 0 12 0 100%
src/prisma/_constants.py 6 0 0 0 0 100%
src/prisma/_fields.py 73 5 12 16 1 91%
src/prisma/_metrics.py 25 0 0 0 0 100%
src/prisma/_proxy.py 30 0 1 2 0 100%
src/prisma/_raw_query.py 41 0 4 14 0 100%
src/prisma/_registry.py 23 4 2 10 1 79%
src/prisma/_sync_http.py 46 7 0 8 0 76%
src/prisma/_transactions.py 96 6 2 24 2 93%
src/prisma/_types.py 36 0 2 2 0 100%
src/prisma/_typing.py 6 1 0 2 1 75%
src/prisma/_vendor/__init__.py 0 0 0 0 0 100%
src/prisma/_vendor/lark_schema_parser.py 2127 937 16 698 60 49%
src/prisma/_vendor/lark_schema_scan_parser.py 2127 977 16 698 55 47%
src/prisma/bases.py 57 2 2 4 0 97%
src/prisma/binaries/__init__.py 1 0 0 0 0 100%
src/prisma/binaries/constants.py 5 0 0 2 0 100%
src/prisma/binaries/platform.py 47 5 0 15 5 84%
src/prisma/cli/__init__.py 2 0 0 0 0 100%
src/prisma/cli/_node.py 172 14 12 50 11 89%
src/prisma/cli/cli.py 58 1 0 22 1 98%
src/prisma/cli/commands/__init__.py 0 0 0 0 0 100%
src/prisma/cli/commands/dev.py 22 9 5 4 1 54%
src/prisma/cli/commands/fetch.py 9 1 2 2 1 82%
src/prisma/cli/commands/generate.py 41 3 2 18 2 88%
src/prisma/cli/commands/version.py 21 1 2 6 0 96%
src/prisma/cli/custom.py 4 0 0 0 0 100%
src/prisma/cli/options.py 6 0 0 0 0 100%
src/prisma/cli/prisma.py 52 10 0 14 2 79%
src/prisma/cli/utils.py 78 9 3 30 2 82%
src/prisma/engine/__init__.py 9 2 0 0 0 78%
src/prisma/engine/_abstract.py 55 0 20 2 1 98%
src/prisma/engine/_http.py 104 8 0 28 4 91%
src/prisma/engine/_query.py 213 31 13 40 5 84%
src/prisma/engine/abstract.py 13 0 0 0 0 100%
src/prisma/engine/errors.py 30 0 0 0 0 100%
src/prisma/engine/http.py 2 0 0 0 0 100%
src/prisma/engine/query.py 2 0 0 0 0 100%
src/prisma/engine/utils.py 112 12 0 42 5 88%
src/prisma/errors.py 98 7 0 8 1 92%
src/prisma/fields.py 1 0 0 0 0 100%
src/prisma/generator/__init__.py 5 0 0 0 0 100%
src/prisma/generator/_dsl_parser/__init__.py 1 0 0 0 0 100%
src/prisma/generator/_dsl_parser/parser.py 32 0 4 6 0 100%
src/prisma/generator/_dsl_parser/transformer.py 24 2 1 6 2 87%
src/prisma/generator/errors.py 5 0 0 0 0 100%
src/prisma/generator/filters.py 2 0 0 0 0 100%
src/prisma/generator/generator.py 153 5 8 52 7 94%
src/prisma/generator/jsonrpc.py 59 3 0 2 1 93%
src/prisma/generator/models.py 640 29 23 208 16 94%
src/prisma/generator/schema.py 97 2 1 32 5 95%
src/prisma/generator/types.py 14 0 0 0 0 100%
src/prisma/generator/utils.py 84 1 2 18 3 96%
src/prisma/http.py 11 0 0 0 0 100%
src/prisma/http_abstract.py 62 2 8 4 0 97%
src/prisma/metadata.py 3 0 0 0 0 100%
src/prisma/mypy.py 192 192 2 74 0 0%
src/prisma/testing.py 19 0 0 4 0 100%
src/prisma/utils.py 67 11 3 8 0 83%
src/prisma/validator.py 40 0 0 10 0 100%
tests/__init__.py 0 0 0 0 0 100%
tests/conftest.py 32 0 4 4 0 100%
tests/integrations/__init__.py 0 0 0 0 0 100%
tests/integrations/conftest.py 51 13 21 4 1 75%
tests/test_actions.py 17 0 0 0 0 100%
tests/test_batch.py 10 0 0 4 0 100%
tests/test_builder.py 98 0 10 16 0 100%
tests/test_cli/__init__.py 0 0 0 0 0 100%
tests/test_cli/commands/example.py 4 0 0 0 0 100%
tests/test_cli/commands/missing_cli_attr.py 0 0 0 0 0 100%
tests/test_cli/commands/wrong_cli_type.py 1 0 0 0 0 100%
tests/test_cli/test_cli.py 50 0 2 4 0 100%
tests/test_cli/test_dev.py 22 0 33 0 0 100%
tests/test_cli/test_fetch.py 13 0 0 2 0 100%
tests/test_cli/test_generate.py 70 0 2 10 0 100%
tests/test_cli/test_prisma.py 9 0 0 2 0 100%
tests/test_cli/test_utils.py 35 0 0 0 0 100%
tests/test_cli/test_version.py 53 0 0 2 0 100%
tests/test_client.py 134 0 3 18 0 100%
tests/test_config.py 46 0 0 8 0 100%
tests/test_docs/test_docstrings.py 31 0 0 8 0 100%
tests/test_dotenv.py 40 0 0 8 0 100%
tests/test_engine.py 92 0 8 22 0 100%
tests/test_fields.py 6 0 0 0 0 100%
tests/test_generation/__init__.py 0 0 0 0 0 100%
tests/test_generation/exhaustive/__init__.py 0 0 0 0 0 100%
tests/test_generation/exhaustive/conftest.py 23 0 0 8 0 100%
tests/test_generation/exhaustive/partials.py 6 6 0 0 0 0%
tests/test_generation/exhaustive/test_exhaustive.py 64 0 5 8 0 100%
tests/test_generation/exhaustive/utils.py 2 0 0 0 0 100%
tests/test_generation/test_assumptions.py 40 0 2 10 0 100%
tests/test_generation/test_attributes.py 6 0 8 0 0 100%
tests/test_generation/test_generator.py 84 0 9 16 0 100%
tests/test_generation/test_models.py 35 0 0 10 0 100%
tests/test_generation/test_partial_types.py 109 0 138 26 0 100%
tests/test_generation/test_prisma_cleanup.py 44 0 0 6 0 100%
tests/test_generation/test_schema_dsl_parser.py 29 0 0 0 0 100%
tests/test_generation/test_utils.py 34 0 0 0 0 100%
tests/test_generation/test_validation.py 82 0 0 24 0 100%
tests/test_generation/utils.py 17 0 0 8 0 100%
tests/test_http.py 44 0 4 8 0 100%
tests/test_misc.py 33 0 0 6 0 100%
tests/test_models.py 11 0 1 6 0 100%
tests/test_node/__init__.py 0 0 0 0 0 100%
tests/test_node/test_node.py 73 0 45 14 0 100%
tests/test_proxy.py 33 0 0 4 0 100%
tests/test_testing.py 30 0 1 12 0 100%
tests/test_typing_warnings.py 29 0 0 10 0 100%
tests/test_validator.py 44 0 0 14 0 100%
tests/utils.py 139 0 15 32 0 100%
Total 16154 2374 679 3343 226 81%

No items found using the specified filter.