Dataset Viewer
Auto-converted to Parquet Duplicate
instance_id
string
hints_text
string
patch
string
test_patch
string
created_at
string
problem_statement
string
repo
string
base_commit
string
version
string
PASS_TO_PASS
list
FAIL_TO_PASS
list
getmoto__moto-6633
diff --git a/moto/cloudformation/parsing.py b/moto/cloudformation/parsing.py --- a/moto/cloudformation/parsing.py +++ b/moto/cloudformation/parsing.py @@ -793,17 +793,7 @@ def update( for logical_name in resource_names_by_action["Remove"]: resource_json = self._resource_json_map[logical_name] ...
diff --git a/tests/test_dynamodb/exceptions/test_dynamodb_exceptions.py b/tests/test_dynamodb/exceptions/test_dynamodb_exceptions.py --- a/tests/test_dynamodb/exceptions/test_dynamodb_exceptions.py +++ b/tests/test_dynamodb/exceptions/test_dynamodb_exceptions.py @@ -599,3 +599,29 @@ def test_put_item_empty_set(): ...
2021-06-04T16:21:09Z
new clients/resources do not find the resources created in Setup() Versions: moto 3.0.2 boto3 1.20.24 pytest 6.2.5 with the update past 3.0, any of our tests using moto failed with "Resource not Found" The tests originally looked something like this (which worked under 2.3.2: (create table creates ...
python/mypy
b9622875f5734088dbe213add3b06b19425b2f1b
4.1
[]
[ "mypy/test/testcheck.py::TypeCheckSuite::testFinalUsedWithClassVar" ]
getmoto__moto-6350
diff --git a/mypy/plugins/dataclasses.py b/mypy/plugins/dataclasses.py --- a/mypy/plugins/dataclasses.py +++ b/mypy/plugins/dataclasses.py @@ -24,6 +24,7 @@ Context, DataclassTransformSpec, Decorator, + EllipsisExpr, Expression, FuncDef, FuncItem, @@ -149,13 +150,13 @@ def to_argument( ...
diff --git a/tests/test_stepfunctions/test_stepfunctions.py b/tests/test_stepfunctions/test_stepfunctions.py --- a/tests/test_stepfunctions/test_stepfunctions.py +++ b/tests/test_stepfunctions/test_stepfunctions.py @@ -758,15 +758,22 @@ def test_state_machine_throws_error_when_describing_unknown_execution(): def test_...
2022-02-28 20:03:06
mypyc: `Cls.__dict__` is `mappingproxy`, not `dict` **Bug Report** It looks mypy's type inference works fine and it's mypyc (maybe) bug Maybe it's connected to builtins `vars` signature -- vars by the signature should return `dict` But it's false, `vars` may return `mappingproxy`: ``` >>> class Foo: ... >>> F...
python/mypy
2d5ae58120d4a5990d8c73810fa996bb16269a6e
3.1
[ "tests/test_apigateway/test_apigateway_importrestapi.py::test_import_rest_api__api_is_created", "tests/test_apigateway/test_apigateway_importrestapi.py::test_import_rest_api__invalid_api_creates_nothing", "tests/test_apigateway/test_apigateway_importrestapi.py::test_import_rest_api__methods_are_created" ]
[ "tests/test_wafv2/test_wafv2_integration.py::test_associate_with_apigateway_stage", "tests/test_wafv2/test_wafv2_tags.py::test_untag_resource", "tests/test_wafv2/test_wafv2_tags.py::test_list_tags_for_resource", "tests/test_wafv2/test_wafv2.py::test_create_web_acl_with_all_arguments", "tests/test_wafv2/test...
getmoto__moto-7373
Note: the problem didn't occur until v0.920. I'm using an `_` function to attach metadata to attributes of classes (with metaclasses) and dataclasses for clarity and conciseness while providing proper type checking. While the function could be named `field()` or something else, it adds another name that the user must p...
diff --git a/moto/ec2/models/transit_gateway_attachments.py b/moto/ec2/models/transit_gateway_attachments.py --- a/moto/ec2/models/transit_gateway_attachments.py +++ b/moto/ec2/models/transit_gateway_attachments.py @@ -222,6 +222,18 @@ def delete_transit_gateway_vpc_attachment( transit_gateway_attachment_i...
diff --git a/test-data/unit/check-functions.test b/test-data/unit/check-functions.test --- a/test-data/unit/check-functions.test +++ b/test-data/unit/check-functions.test @@ -2230,6 +2230,12 @@ reveal_type(h) # N: Revealed type is "builtins.function" h(7) # E: Cannot call function of unknown type [builtins fixtures/b...
2024-03-19 08:54:09
Crash when using combination of Literal, get_args, subclassing, and variable args (*args) **Crash Report** This crash occurs when using a combination of: `typing.Literal` that is a class variable, `typing.get_args`, and subclassing Please see the below minimum code sample to get an idea of what creates the proble...
getmoto/moto
58c0a051b72731f093385cc7001b1f5c2abd2c18
4.1
[ "tests/test_firehose/test_firehose_destination_types.py::test_create_elasticsearch_delivery_stream", "tests/test_firehose/test_firehose.py::test_lookup_name_from_arn", "tests/test_firehose/test_firehose_destination_types.py::test_create_s3_delivery_stream", "tests/test_firehose/test_firehose.py::test_update_d...
[ "tests/test_cloudfront/test_cloudfront_invalidation.py::test_list_invalidations__no_entries" ]
getmoto__moto-6082
Marking it as an enhancement! Thanks for raising this @edgarrmondragon.
diff --git a/moto/dynamodb/exceptions.py b/moto/dynamodb/exceptions.py --- a/moto/dynamodb/exceptions.py +++ b/moto/dynamodb/exceptions.py @@ -332,3 +332,8 @@ class TransactWriteSingleOpException(MockValidationException): def __init__(self): super().__init__(self.there_can_be_only_one) + + +class Serial...
diff --git a/tests/terraform-tests.success.txt b/tests/terraform-tests.success.txt --- a/tests/terraform-tests.success.txt +++ b/tests/terraform-tests.success.txt @@ -71,6 +71,8 @@ TestAccAWSIAMGroupPolicy TestAccAWSIAMGroupPolicyAttachment TestAccAWSIAMRole TestAccAWSIAMUserPolicy +TestAccAWSIotEndpointDataSource +...
2023-02-21 22:33:47
mypy should support optional tagged unions __Report Type:__ Bug __Example:__ https://mypy-play.net/?mypy=latest&python=3.8&gist=529e99849ebe65749d8568b743f21050 ```python from typing import Literal, TypedDict, Union class NewJob(TypedDict): event_type: Literal["new-job"] job_description: str clas...
python/mypy
4f07c79aea0fef61ab649d6acedf01186f1054eb
1.4
[]
[ "tests/test_s3/test_s3_logging.py::test_put_logging_w_bucket_policy_w_prefix" ]
python__mypy-15306
Thanks for raising this and providing the repro, @JonathanRohland-TNG! Marking it as a bug.
diff --git a/moto/ce/models.py b/moto/ce/models.py --- a/moto/ce/models.py +++ b/moto/ce/models.py @@ -74,6 +74,8 @@ class CostExplorerBackend(BaseBackend): def __init__(self, region_name: str, account_id: str): super().__init__(region_name, account_id) self.cost_categories: Dict[str, CostCategor...
diff --git a/tests/test_dynamodb/test_dynamodb_update_expressions.py b/tests/test_dynamodb/test_dynamodb_update_expressions.py new file mode 100644 --- /dev/null +++ b/tests/test_dynamodb/test_dynamodb_update_expressions.py @@ -0,0 +1,32 @@ +import boto3 +import sure # noqa # pylint: disable=unused-import +from moto i...
2024-02-11 19:42:00
moto breaks repsonses library usage if moto is used with responses for mocking request responses library will be broken ```python import responses from moto import mock_s3 @mock_s3 @responses.activate def test(): responses.add( responses.POST, url='http://someurl', body="4", ...
getmoto/moto
c8bae06919674b9846e3ff864b0a44592db888eb
3.0
[ "tests/test_ec2/test_subnets.py::test_describe_subnets_dryrun", "tests/test_ec2/test_ec2_cloudformation.py::test_multiple_security_group_ingress_separate_from_security_group_by_id", "tests/test_elbv2/test_elbv2.py::test_modify_listener_http_to_https", "tests/test_ec2/test_subnets.py::test_available_ip_address...
[ "tests/test_s3/test_s3_multipart.py::test_complete_multipart_with_empty_partlist", "tests/test_s3control/test_s3control_access_points.py::test_get_access_point_minimal", "tests/test_s3control/test_s3control_access_points.py::test_delete_access_point", "tests/test_s3control/test_s3control_accesspoint_policy.py...
python__mypy-14178
diff --git a/moto/ec2/models.py b/moto/ec2/models.py --- a/moto/ec2/models.py +++ b/moto/ec2/models.py @@ -8642,6 +8642,20 @@ class EC2Backend( IamInstanceProfileAssociationBackend, CarrierGatewayBackend, ): + """ + Implementation of the AWS EC2 endpoint. + + moto includes a limited set of AMIs in `...
diff --git a/tests/test_batch_simple/test_batch_jobs.py b/tests/test_batch_simple/test_batch_jobs.py --- a/tests/test_batch_simple/test_batch_jobs.py +++ b/tests/test_batch_simple/test_batch_jobs.py @@ -68,6 +68,8 @@ def test_submit_job_by_name(): job["jobQueue"].should.equal(queue_arn) job["jobDefinition"].s...
2022-10-04T10:32:50Z
mypy doesn't understand `@abc.abstractmethod` on `__getattr__` <!-- If you're new to mypy and you're not sure whether what you're experiencing is a mypy bug, please see the "Question and Help" form instead. --> **Bug Report** <!-- Note: If the problem you are reporting is about a specific library function...
getmoto/moto
ed0cc78a5cbdfcb9724cf1f294f7b5cbbd1d6778
4.2
[ "tests/test_sns/test_application_boto3.py::test_delete_platform_application", "tests/test_sns/test_application_boto3.py::test_publish_to_disabled_platform_endpoint", "tests/test_sns/test_application_boto3.py::test_get_list_endpoints_by_platform_application", "tests/test_sns/test_application_boto3.py::test_set...
[ "tests/test_rds/test_rds.py::test_create_database", "tests/test_rds/test_rds_clusters.py::test_create_db_cluster_additional_parameters" ]
python__mypy-12064
Hi @JohannesKoenigTMH, thanks for raising this, and welcome to Moto! I'll raise a PR shortly to add the correct validation here.
diff --git a/mypy/fastparse.py b/mypy/fastparse.py --- a/mypy/fastparse.py +++ b/mypy/fastparse.py @@ -144,6 +144,11 @@ def ast3_parse( NamedExpr = ast3.NamedExpr Constant = ast3.Constant +if sys.version_info >= (3, 12): + ast_TypeAlias = ast3.TypeAlias +else: + ast_TypeAlias = Any + if sys.version_info >= (...
diff --git a/tests/terraformtests/terraform-tests.success.txt b/tests/terraformtests/terraform-tests.success.txt --- a/tests/terraformtests/terraform-tests.success.txt +++ b/tests/terraformtests/terraform-tests.success.txt @@ -140,6 +140,7 @@ kms: lambda: - TestAccLambdaAlias_ - TestAccLambdaLayerVersion_ + - T...
2023-08-15T11:18:33Z
Delete fleets without terminate instances deletes the fleet and instances I'm switching my code from using the spot fleet request API (which is documented as "strongly discouraged" in [the docs](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/ec2/client/request_spot_fleet.html)) to the fleet ...
getmoto/moto
2c9c7a7a63e7ca0526e433f76902c40801ab02cc
4.0
[ "mypy/test/testfinegrained.py::FineGrainedSuite::fine-grained-inspect.test::testInspectModuleDef", "mypy/test/testfinegrainedcache.py::FineGrainedCacheSuite::fine-grained-inspect.test::testInspectModuleDef_cached", "mypy/test/testpythoneval.py::PythonEvaluationSuite::pythoneval.test::testSpecialAttributes" ]
[ "tests/test_resourcegroupstaggingapi/test_resourcegroupstagging_rds.py::TestRdsTagging::test_tag_resources_rds", "tests/test_resourcegroupstaggingapi/test_resourcegroupstaggingapi.py::test_tag_resources_for_unknown_service" ]
getmoto__moto-6998
diff --git a/moto/kinesis/exceptions.py b/moto/kinesis/exceptions.py --- a/moto/kinesis/exceptions.py +++ b/moto/kinesis/exceptions.py @@ -82,3 +82,36 @@ def __init__(self, value, position, regex_to_match): "__type": "ValidationException", } ) + + +class RecordSizeExceedsLimit(Bad...
diff --git a/tests/test_cognitoidp/test_cognitoidp.py b/tests/test_cognitoidp/test_cognitoidp.py --- a/tests/test_cognitoidp/test_cognitoidp.py +++ b/tests/test_cognitoidp/test_cognitoidp.py @@ -19,6 +19,7 @@ from moto import mock_aws, settings from moto.cognitoidp.utils import create_id from moto.core import DEFAUL...
2023-08-25 20:04:15
Defining _order_ in an enum class rejected This generates an error, even though it's valid: ```py from enum import Enum class E(Enum): _order_ = 'X Y' # Cannot override writable attribute "_order_" with a final one X = 1 Y = 2 ``` According to the [docs](https://docs.python.org/3/library/enum...
getmoto/moto
f158f0e9859e96c71bc0201ec7558bb817aee7d8
1.0
[ "tests/test_scheduler/test_scheduler.py::test_list_schedules", "tests/test_scheduler/test_scheduler.py::test_create_get_schedule", "tests/test_scheduler/test_scheduler.py::test_create_get_delete__in_different_group", "tests/test_scheduler/test_scheduler.py::test_update_schedule[with_group]", "tests/test_sch...
[ "mypy/test/testcheck.py::TypeCheckSuite::check-unions.test::testDescriptorAccessForUnionOfTypesWithNoStrictOptional" ]
getmoto__moto-5137
earlier related work: #6264 and #6303. Hmmm from testing it seems that S3 allows self-copies in general if versioning is enabled, whether there is a source version specified or not. In other words, we should add a heuristic to check if versioning is enabled, not if `src_key` has a version or not.
diff --git a/mypy/plugins/attrs.py b/mypy/plugins/attrs.py --- a/mypy/plugins/attrs.py +++ b/mypy/plugins/attrs.py @@ -325,9 +325,6 @@ def attr_class_maker_callback( frozen = _get_frozen(ctx, frozen_default) order = _determine_eq_order(ctx) slots = _get_decorator_bool_argument(ctx, "slots", slots_default...
diff --git a/test-data/unit/check-python310.test b/test-data/unit/check-python310.test --- a/test-data/unit/check-python310.test +++ b/test-data/unit/check-python310.test @@ -1958,3 +1958,23 @@ def redefinition_bad(a: int): ... [builtins fixtures/primitives.pyi] + +[case testPatternMatchingClassPatternL...
2023-11-07 04:54:39
[Feature request] Recombine complete union of enum literals into original type This is feature that I think needs to be implemented before I can publish a PR for issue #6113. ``` from enum import Enum class Color(Enum): RED = 1 GREEN = 2 BLUE = 3 x: Color if x is Color.RED: pass reveal...
getmoto/moto
c0ce38dba888af7abccec7edec629747f5e15e21
0.920
[ "tests/test_awslambda/test_lambda_layers.py::test_get_layer_version__unknown", "tests/test_awslambda/test_lambda_layers.py::test_publish_lambda_layers__without_content", "tests/test_awslambda/test_lambda_layers.py::test_get_lambda_layers", "tests/test_awslambda/test_lambda_layers.py::test_get_layer_version", ...
[ "tests/test_ssm/test_ssm_boto3.py::test_list_commands", "tests/test_ssm/test_ssm_boto3.py::test_send_command" ]
getmoto__moto-7495
diff --git a/moto/lakeformation/models.py b/moto/lakeformation/models.py --- a/moto/lakeformation/models.py +++ b/moto/lakeformation/models.py @@ -56,6 +56,8 @@ def describe_resource(self, resource_arn: str) -> Resource: return self.resources[resource_arn] def deregister_resource(self, resource_arn: str...
diff --git a/tests/test_kms/test_kms_boto3.py b/tests/test_kms/test_kms_boto3.py --- a/tests/test_kms/test_kms_boto3.py +++ b/tests/test_kms/test_kms_boto3.py @@ -1,7 +1,7 @@ import json from datetime import datetime -from cryptography.hazmat.primitives import hashes -from cryptography.hazmat.primitives.asymmetric im...
2022-10-17 17:18:09
mock_athena fails to get "primary" work group Hello! After upgrading from moto version 4.1.4 to 4.1.7, we now experience errors when performing the `athena_client.get_work_group(WorkGroup="primary")` call. Querying any other work group than "primary" (existent or non-existent work groups) works fine. The only code a...
getmoto/moto
5c2fc55ea1d2975d5be50dead4f9b49d76feec8b
5.0
[ "tests/test_sqs/test_sqs.py::test_message_with_attributes_have_labels", "tests/test_sqs/test_sqs.py::test_create_queue_with_tags", "tests/test_sqs/test_sqs.py::test_fifo_send_receive_message_with_attribute_name[ApproximateReceiveCount]", "tests/test_sqs/test_sqs.py::test_untag_queue_errors", "tests/test_sqs...
[ "mypy/test/testcheck.py::TypeCheckSuite::check-python310.test::testPatternMatchingClassPatternLocation" ]
getmoto__moto-5384
Hi @FelixRoche, I cannot see a mention of `global` in that particular file. Do you have a specific test case that is failing for you? Hi @bblommers, the mention of global would be on the master branch in line 14 in the backend(self) method I can provide some example on how it is working and how I would expect it ...
diff --git a/moto/applicationautoscaling/models.py b/moto/applicationautoscaling/models.py --- a/moto/applicationautoscaling/models.py +++ b/moto/applicationautoscaling/models.py @@ -1,7 +1,7 @@ import time from collections import OrderedDict from enum import Enum, unique -from typing import Dict, List, Optional, Tu...
diff --git a/tests/test_rds/test_server.py b/tests/test_rds/test_server.py --- a/tests/test_rds/test_server.py +++ b/tests/test_rds/test_server.py @@ -25,4 +25,11 @@ def test_create_db_instance(): } res = test_client.post("/?Action=CreateDBInstance", data=json.dumps(body)) - res.data.decode("utf-8").shou...
2024-03-10 22:57:44
Aurora Postgres Does Not Support Mock ServerlessV2 From what I can tell, Aurora Postgres does not support ServerlessV2ScalingConfiguration like Neptune does. Support for this would be great!
getmoto/moto
706389d3d551dc8f18ce5e5f48584f351a7a07a1
3.1
[]
[ "tests/test_cloudwatch/test_cloudwatch_tags.py::test_tag_resource_on_resource_without_tags" ]
getmoto__moto-5118
diff --git a/moto/dynamodb2/exceptions.py b/moto/dynamodb2/exceptions.py --- a/moto/dynamodb2/exceptions.py +++ b/moto/dynamodb2/exceptions.py @@ -174,6 +174,13 @@ def __init__(self, errors): super().__init__(msg) +class MultipleTransactionsException(MockValidationException): + msg = "Transaction reques...
diff --git a/tests/test_dynamodb/test_dynamodb_table_with_range_key.py b/tests/test_dynamodb/test_dynamodb_table_with_range_key.py --- a/tests/test_dynamodb/test_dynamodb_table_with_range_key.py +++ b/tests/test_dynamodb/test_dynamodb_table_with_range_key.py @@ -1170,24 +1170,42 @@ def test_scan_by_index(): assert...
2022-11-22T05:28:48Z
When creating ec2 instances from launch template via run_instances, the instances aren't tagged I'm using moto in pytest. I have created a launch template using `create_launch_template`. This template is created with `TagSpecifications` for instance and volume. Upon using `run_instances` to create new instances base...
python/mypy
7289a6c7b11bbbd97e6004ff742eb0af5139950f
4.1
[ "mypy/test/testcheck.py::TypeCheckSuite::check-enum.test::testEnumReusedKeys", "mypy/test/testcheck.py::TypeCheckSuite::check-enum.test::testEnumReusedKeysOverlapWithLocalVar" ]
[ "tests/test_logs/test_logs_filter.py::TestLogsFilterPattern::test_multiple_words_pattern", "tests/test_logs/test_logs_filter.py::TestLogsFilterPattern::test_unknown_pattern", "tests/test_logs/test_logs_filter.py::TestLogsFilterPattern::test_quoted_pattern", "tests/test_logs/test_logs_filter.py::TestLogsFilter...
python__mypy-15219
diff --git a/moto/secretsmanager/models.py b/moto/secretsmanager/models.py --- a/moto/secretsmanager/models.py +++ b/moto/secretsmanager/models.py @@ -660,6 +660,7 @@ def rotate_secret( client_request_token: Optional[str] = None, rotation_lambda_arn: Optional[str] = None, rotation_rules: Opti...
diff --git a/tests/test_ec2/test_security_groups.py b/tests/test_ec2/test_security_groups.py --- a/tests/test_ec2/test_security_groups.py +++ b/tests/test_ec2/test_security_groups.py @@ -563,6 +563,49 @@ def test_authorize_all_protocols_with_no_port_specification(): permission.shouldnt.have.key("ToPort") +@moc...
2021-10-04T13:55:40Z
errors around update_item() when using SET and increment Hi, I've been working with moto on the dynamodb client and I'm noticing an issue where I'm getting errors around the update_item() function while using SET with an increment where I'm getting the following error: > botocore.exceptions.ClientError: An error ...
python/mypy
067e00871640dd9574b4466e39044f8198d5bd7e
3.1
[]
[ "tests/test_kms/test_kms_grants.py::test_list_retirable_grants", "tests/test_kms/test_kms_grants.py::test_list_grants", "tests/test_kms/test_kms_grants.py::test_create_grant", "tests/test_kms/test_kms_grants.py::test_retire_grant_by_grant_id", "tests/test_kms/test_kms_grants.py::test_revoke_grant_by_token",...
python__mypy-15882
Likely a bug in the narrowing code that doesn't take into account type alias types (or just a missing `get_proper_type()` there). If I inline `Event` in the second alias, then everything works as expected.
diff --git a/moto/cloudformation/exceptions.py b/moto/cloudformation/exceptions.py --- a/moto/cloudformation/exceptions.py +++ b/moto/cloudformation/exceptions.py @@ -38,6 +38,16 @@ def __init__(self, export_name: str): self.description = template.render(code="ExportNotFound", message=message) +class Stack...
diff --git a/test-data/unit/check-type-aliases.test b/test-data/unit/check-type-aliases.test --- a/test-data/unit/check-type-aliases.test +++ b/test-data/unit/check-type-aliases.test @@ -50,6 +50,14 @@ def f(x: A) -> None: f(1) f('x') +[case testNoReturnTypeAlias] +# https://github.com/python/mypy/issues/11903 +fro...
2023-03-20T09:41:54Z
A Different Reaction of ECS tag_resource Hello! Let me report a bug found at `moto/ecs/models.py`. # Symptom When try to add new tags to a *_ECS cluster having no tag_*, `moto` fails to merge new tags into existing tags because of TypeError. # Expected Result The new tags should be added to the ECS cluster as ...
getmoto/moto
bcd4ff231554102a6698615882074e440ebfc3c9
3.1
[ "tests/test_cloudfront/test_cloudfront_invalidation.py::test_create_invalidation" ]
[ "tests/test_applicationautoscaling/test_applicationautoscaling_policies.py::test_put_scaling_policy_with_unknown_policytype[TargetTrackingScaling-policy_body_kwargs0]", "tests/test_applicationautoscaling/test_applicationautoscaling_policies.py::test_describe_scaling_policy_with_ecs_alarms", "tests/test_applicat...
End of preview. Expand in Data Studio

edition_0249_SWE-Gym-SWE-Gym-readymade

A Readymade by TheFactoryX

Original Dataset

SWE-Gym/SWE-Gym

Process

This dataset is a "readymade" - inspired by Marcel Duchamp's concept of taking everyday objects and recontextualizing them as art.

What we did:

  1. Selected the original dataset from Hugging Face
  2. Shuffled each column independently
  3. Destroyed all row-wise relationships
  4. Preserved structure, removed meaning

The result: Same data. Wrong order. New meaning. No meaning.

Purpose

This is art. This is not useful. This is the point.

Column relationships have been completely destroyed. The data maintains its types and values, but all semantic meaning has been removed.


Part of the Readymades project by TheFactoryX.

"I am a machine." — Andy Warhol

Downloads last month
4