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-6509
Hi @Haegi, we currently don't take the Resource-key into account at all. Marking it as an enhancement to improve this area.
diff --git a/mypy/checker.py b/mypy/checker.py --- a/mypy/checker.py +++ b/mypy/checker.py @@ -7216,22 +7216,32 @@ def is_unsafe_overlapping_overload_signatures( # # This discrepancy is unfortunately difficult to get rid of, so we repeat the # checks twice in both directions for now. + # + # Note t...
diff --git a/tests/test_cloudfront/test_cloudfront.py b/tests/test_cloudfront/test_cloudfront.py --- a/tests/test_cloudfront/test_cloudfront.py +++ b/tests/test_cloudfront/test_cloudfront.py @@ -223,3 +223,27 @@ def test_update_distribution_dist_config_not_set(): assert typename == "ParamValidationError" erro...
2022-10-12 22:09:46
EC2 run_instances BlockDeviceMapping missing support for NoDevice In [FireSim](https://fires.im/) we use an AMI that by default has two volumes. We only need one of them and thus make use of the `NoDevice` property of [`BlockDeviceMapping`](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_BlockDeviceMapping....
getmoto/moto
58ee2cd61cc625d558b13c37c2f49b67816ff13d
4.1
[ "tests/test_dynamodb/exceptions/test_dynamodb_exceptions.py::test_query_gsi_with_wrong_key_attribute_names_throws_exception", "tests/test_dynamodb/exceptions/test_dynamodb_exceptions.py::test_update_primary_key", "tests/test_dynamodb/exceptions/test_dynamodb_exceptions.py::test_creating_table_with_0_local_index...
[ "tests/test_acm/test_acm.py::test_request_certificate_no_san", "tests/test_acm/test_acm.py::test_describe_certificate" ]
getmoto__moto-7347
Hi @bmaisonn, thanks for raising this - that was indeed an oversight. A PR would be very welcome! Let me know if you need any help with that.
diff --git a/moto/core/responses.py b/moto/core/responses.py --- a/moto/core/responses.py +++ b/moto/core/responses.py @@ -725,25 +725,19 @@ def _get_map_prefix(self, param_prefix, key_end=".key", value_end=".value"): return results - def _parse_tag_specification(self, param_prefix): - tags = sel...
diff --git a/test-data/unit/check-recursive-types.test b/test-data/unit/check-recursive-types.test --- a/test-data/unit/check-recursive-types.test +++ b/test-data/unit/check-recursive-types.test @@ -837,3 +837,37 @@ def foo(x: T) -> C: ... Nested = Union[C, Sequence[Nested]] x: Nested = foo(42) + +[case testNoRecur...
2022-03-08 08:15:01
Position of double-starred kwargs affects the type errors when instantiating subclasses attr objects <!-- Note: If the problem you are reporting is about a specific library function, then the typeshed tracker is better suited for this report: https://github.com/python/typeshed/issues --> ## 🐛 Bug Report I'm n...
getmoto/moto
6c1eb5b36b83ecf959a50100d282ca86186f470f
0.800
[ "tests/test_ec2/test_ec2_cloudformation.py::test_classic_eip", "tests/test_ec2/test_ec2_cloudformation.py::test_vpc_gateway_attachment_creation_should_attach_itself_to_vpc", "tests/test_ec2/test_ec2_cloudformation.py::test_subnet_tags_through_cloudformation_boto3", "tests/test_ec2/test_ec2_cloudformation.py::...
[ "tests/test_logs/test_logs.py::test_delete_metric_filter" ]
python__mypy-9796
ok, caused by not having `availability_zones` as parameter. Still, having some more info on the moto_server stdout and the failing dashboard is still an issue Thanks for raising this @hans-d - we should indeed have some validation before exploding.
diff --git a/moto/secretsmanager/models.py b/moto/secretsmanager/models.py --- a/moto/secretsmanager/models.py +++ b/moto/secretsmanager/models.py @@ -61,12 +61,13 @@ def __init__( account_id: str, region_name: str, secret_id: str, + secret_version: Dict[str, Any], + version_id:...
diff --git a/tests/test_ses/test_ses_boto3.py b/tests/test_ses/test_ses_boto3.py --- a/tests/test_ses/test_ses_boto3.py +++ b/tests/test_ses/test_ses_boto3.py @@ -22,6 +22,18 @@ def test_verify_email_identity(): address.should.equal("test@example.com") +@mock_ses +def test_verify_email_identity_idempotency(): ...
2022-02-24 02:08:38
Better support for default arguments to new-style attrs API **Bug Report** attrs.define has `slots=True` by default. Mypy does not use the default value when analysing **To Reproduce** ```python # demo.py import attr @attr.define class A: x: int def __init__(self, x :int) -> None: self.x = ...
python/mypy
9c0724e0d07ff79a0e807d2cbc28a506063dcd13
5.0
[ "tests/test_wafv2/test_wafv2.py::test_list_web_acl" ]
[ "tests/test_applicationautoscaling/test_applicationautoscaling.py::test_describe_scheduled_actions", "tests/test_applicationautoscaling/test_applicationautoscaling.py::test_put_scheduled_action__use_update", "tests/test_applicationautoscaling/test_applicationautoscaling.py::test_delete_scheduled_action", "tes...
getmoto__moto-4881
Marking it as an enhancement. Welcome to Moto @chrisvbrown!
diff --git a/moto/route53/models.py b/moto/route53/models.py --- a/moto/route53/models.py +++ b/moto/route53/models.py @@ -314,6 +314,27 @@ def __contains__(self, item: Any) -> bool: item["ResourceRecordSet"]["Name"] = item["ResourceRecordSet"]["Name"].strip(".") return super().__contains__(item) + ...
diff --git a/test-data/unit/check-selftype.test b/test-data/unit/check-selftype.test --- a/test-data/unit/check-selftype.test +++ b/test-data/unit/check-selftype.test @@ -232,7 +232,7 @@ class C(A[None]): # N: def f(self, s: int) -> int [builtins fixtures/tuple.pyi] -[c...
2022-09-28 20:07:33
Lambda publish_layer_version function failed due to the wrong implementation ## Reporting Bugs When you run ``publish_layer_version`` ``` lambda_client.publish_layer_version( LayerName="my_layer", Content=dict( S3Bucket="my-bucket", S3Key="my-key.zip", ) ) ``` It raises this...
python/mypy
84174e129d5a0182282a5f8719426d16cddb019b
0.920
[ "mypy/test/testcheck.py::TypeCheckSuite::check-statements.test::testWithStmtScopeAndFuncDef2", "mypy/test/testcheck.py::TypeCheckSuite::check-statements.test::testWithStmtScopeAndFuncDef4", "mypy/test/testcheck.py::TypeCheckSuite::check-statements.test::testWithStmtScopeAndFuncDef3", "mypy/test/testtransform....
[ "tests/test_rds/test_server.py::test_create_db_instance" ]
getmoto__moto-7208
diff --git a/mypy/checkexpr.py b/mypy/checkexpr.py --- a/mypy/checkexpr.py +++ b/mypy/checkexpr.py @@ -4271,6 +4271,9 @@ def visit_assert_type_expr(self, expr: AssertTypeExpr) -> Type: allow_none_return=True, always_allow_any=True, ) + if self.chk.current_node_deferred: + ...
diff --git a/tests/test_ec2/test_instances.py b/tests/test_ec2/test_instances.py --- a/tests/test_ec2/test_instances.py +++ b/tests/test_ec2/test_instances.py @@ -688,6 +688,19 @@ def test_get_instances_filtering_by_ni_private_dns(): reservations[0]["Instances"].should.have.length_of(1) +@mock_ec2 +def test_ru...
2022-03-20 23:57:28
Launch template support for spot fleet requests Is there currently any way to support requesting a spot fleet with a launch template? I've been trying to do this (with code that works against AWS) and getting: ```Traceback (most recent call last): File "/opt/code/localstack/.venv/lib/python3.7/site-packages/werkzeu...
getmoto/moto
0509362737e8f638e81ae412aad74454cfdbe5b5
3.1
[ "tests/test_sns/test_application_boto3.py::test_set_endpoint_attributes", "tests/test_sns/test_application_boto3.py::test_get_platform_application_attributes", "tests/test_sns/test_application_boto3.py::test_create_duplicate_platform_endpoint", "tests/test_sns/test_application_boto3.py::test_delete_platform_a...
[ "tests/test_dynamodb/exceptions/test_dynamodb_exceptions.py::test_update_item_with_duplicate_expressions[set" ]
getmoto__moto-6923
Also, if the ARN does not exist, it appears that we actually get an `InvalidParameter` error from AWS with message: `Invalid parameter: TargetArn Reason: No endpoint found for the target arn specified`, rather than the `NotFound` that Moto gives. Thanks for opening. I'm setting this as a feature request. From [SNS Crea...
diff --git a/moto/ses/models.py b/moto/ses/models.py --- a/moto/ses/models.py +++ b/moto/ses/models.py @@ -165,7 +165,7 @@ def _is_verified_address(self, source: str) -> bool: return True if address in self.email_addresses: return True - _, host = address.split("@", 1) + ...
diff --git a/tests/test_cognitoidentity/test_cognitoidentity.py b/tests/test_cognitoidentity/test_cognitoidentity.py --- a/tests/test_cognitoidentity/test_cognitoidentity.py +++ b/tests/test_cognitoidentity/test_cognitoidentity.py @@ -10,6 +10,7 @@ from moto import mock_aws, settings from moto.cognitoidentity.utils i...
2021-12-29T18:04:40Z
Multiple iot-data publish calls lead to None topic Calling `boto3.client('iot-data', region_name='eu-central-1').publish( topic = my_topic, payload = my_payload, qos = 1 )` More than once, causes the topic for all calls after the first one to be `None` inside `moto.iotdata.models.iotdata...
getmoto/moto
af318c17b9483c4102fb453e384ebd517cdcedd6
4.1
[ "mypy/test/teststubgen.py::StubgenPythonSuite::stubgen.test::testGenericClassTypeVarTuple", "mypy/test/teststubgen.py::StubgenPythonSuite::stubgen.test::testObjectBaseClass", "mypy/test/teststubgen.py::StubgenPythonSuite::stubgen.test::testGenericClassTypeVarTuple_semanal", "mypy/test/teststubgen.py::StubgenP...
[ "tests/test_iam/test_iam_policies.py::test_create_policy_with_invalid_policy_document[invalid_policy_document29]", "tests/test_iam/test_iam.py::test_update_assume_role_invalid_policy_with_resource", "tests/test_iam/test_iam.py::test_update_assume_role_invalid_policy_bad_action", "tests/test_iam/test_iam.py::t...
getmoto__moto-6804
@lscheilling I took a look at the documentation and `input` should be a `str`, not a `dict` - so the moto implementation is correct. https://docs.aws.amazon.com/step-functions/latest/apireference/API_DescribeExecution.html https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/stepfunctions/cli...
diff --git a/moto/ec2/responses/instances.py b/moto/ec2/responses/instances.py --- a/moto/ec2/responses/instances.py +++ b/moto/ec2/responses/instances.py @@ -406,7 +406,9 @@ def _convert_to_bool(bool_str): <publicDnsName>{{ instance.public_dns }}</publicDnsName> <dnsName>{{ instance.public_dns }}...
diff --git a/tests/test_ec2/test_transit_gateway.py b/tests/test_ec2/test_transit_gateway.py --- a/tests/test_ec2/test_transit_gateway.py +++ b/tests/test_ec2/test_transit_gateway.py @@ -1,3 +1,4 @@ +from time import sleep from unittest import SkipTest import boto3 @@ -781,50 +782,197 @@ def test_disassociate_trans...
2023-06-14 19:52:46
Implement CloudFront list_invalidations **How to reproduce the issue** Call `list_invalidations()` on the `cloudfront` client. **What I expected to happen** Get a list of invalidations for the specified CloudFront distribution. **What actually happens** ```moto/core/botocore_stubber.py:60: TypeError: can...
getmoto/moto
c0ce38dba888af7abccec7edec629747f5e15e21
4.0
[ "tests/test_logs/test_logs.py::test_create_log_group[arn:aws:kms:us-east-1:000000000000:key/51d81fab-b138-4bd2-8a09-07fd6d37224d]", "tests/test_logs/test_logs.py::test_describe_log_streams_invalid_order_by[LogStreamname]", "tests/test_logs/test_logs.py::test_create_log_group_invalid_name_length[513]", "tests/...
[ "mypy/test/teststubgen.py::StubgenPythonSuite::stubgen.test::testGenericClassTypeVarTuplePy311", "mypy/test/teststubgen.py::StubgenPythonSuite::stubgen.test::testGenericClassTypeVarTuplePy311_semanal" ]
getmoto__moto-6303
diff --git a/mypy/semanal.py b/mypy/semanal.py --- a/mypy/semanal.py +++ b/mypy/semanal.py @@ -2247,6 +2247,12 @@ def is_type_ref(self, rv: Expression, bare: bool = False) -> bool: return True # Assignment color = Color['RED'] defines a variable, not an alias. return not rv.no...
diff --git a/test-data/unit/stubgen.test b/test-data/unit/stubgen.test --- a/test-data/unit/stubgen.test +++ b/test-data/unit/stubgen.test @@ -377,6 +377,24 @@ class A: def f(self, x) -> None: ... def h(self) -> None: ... +[case testProperty_semanal] +class A: + @property + def f(self): + retur...
2021-11-21T09:41:09Z
Use execution parameters in Athena backend I'm trying to update the AthenaBackend, so I will be able to create a mock based on common SQL statements I use in my tests. I changes the start_query_execution and get_query_results methods, and it works well for me. I'm missing in both statements the query execution para...
python/mypy
4d2ff58e502b52a908f41c18fbbe7cbb32997504
1.7
[ "mypyc/test/test_refcount.py::TestRefCountTransform::refcount.test::testReturnLocal", "mypy/test/testtypegen.py::TypeExportSuite::typexport-basic.test::testLambdaAndHigherOrderFunctionAndKeywordArgs", "mypy/test/testfinegrained.py::FineGrainedSuite::fine-grained-cycles.test::testClassSelfReferenceThroughImportC...
[ "tests/test_batch/test_batch_compute_envs.py::test_create_ec2_managed_compute_environment__without_required_params" ]
getmoto__moto-4977
Hi @mika-koivusaari, thanks for raising this! Can confirm this is a bug - will push a fix shortly.
diff --git a/mypy/checker.py b/mypy/checker.py --- a/mypy/checker.py +++ b/mypy/checker.py @@ -50,6 +50,7 @@ type_object_type, analyze_decorator_or_funcbase_access, ) +from mypy.semanal_enum import ENUM_BASES, ENUM_SPECIAL_PROPS from mypy.typeops import ( map_type_from_supertype, bind_self, erase_to_bo...
diff --git a/tests/test_s3/test_server.py b/tests/test_s3/test_server.py --- a/tests/test_s3/test_server.py +++ b/tests/test_s3/test_server.py @@ -56,6 +56,7 @@ def test_s3_server_bucket_create(key_name): res.status_code.should.equal(200) assert "ETag" in dict(res.headers) + # ListBuckets res = test...
2023-08-15T11:18:33Z
Improved hinting / warning diagnostics where parameter named `self` is missing on instance method The code below is faulty - mypy correctly emits an error "Too many arguments for "set_log_level"": ```python class LoggableDB: def set_log_level(v): print(type(v).__name__) LoggableDB().set_log_level("i ...
getmoto/moto
f59e178f272003ba39694d68390611e118d8eaa9
3.1
[ "tests/test_dynamodb2/exceptions/test_dynamodb_exceptions.py::test_transact_write_items__too_many_transactions", "tests/test_dynamodb2/exceptions/test_dynamodb_exceptions.py::test_empty_expressionattributenames_with_empty_projection", "tests/test_dynamodb2/exceptions/test_dynamodb_exceptions.py::test_empty_expr...
[ "tests/test_ec2/test_security_groups.py::test_create_and_describe_security_grp_rule" ]
getmoto__moto-6986
diff --git a/moto/batch/responses.py b/moto/batch/responses.py --- a/moto/batch/responses.py +++ b/moto/batch/responses.py @@ -1,4 +1,5 @@ from moto.core.responses import BaseResponse +from moto.utilities.aws_headers import amzn_request_id from .models import batch_backends, BatchBackend from urllib.parse import url...
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 @@ -11,6 +11,7 @@ TestAccAWSAppsyncGraphqlApi TestAccAWSAvailabilityZones TestAccAWSBillingServiceAccount TestAccAWSCallerIdentity +TestAccAWSCloudTrail ...
2023-01-12 06:54:57
ec2 created without keypair has KeyName = 'None' When creating an instance without a keypair, moto describes the instance as having a keypair called`None`: ```python import boto3 from moto import mock_ec2 mock = mock_ec2() mock.start() ec2_client = boto3.client("ec2", region_name="us-east-1") ec2_client.ru...
getmoto/moto
d3efa2afb92f453c8fb01ec5e6b70cd074188502
3.1
[ "tests/test_ec2/test_spot_fleet.py::test_modify_spot_fleet_request_up", "tests/test_ec2/test_spot_fleet.py::test_create_spot_fleet_with_lowest_price", "tests/test_ec2/test_spot_fleet.py::test_modify_spot_fleet_request_down", "tests/test_ec2/test_spot_fleet.py::test_modify_spot_fleet_request_down_no_terminate_...
[ "tests/test_iot/test_iot_thing_groups.py::TestListThingGroup::test_should_list_all_groups_non_recursively", "tests/test_iot/test_iot_thing_groups.py::test_describe_thing_group_metadata_hierarchy", "tests/test_iot/test_iot_thing_groups.py::TestListThingGroup::test_should_list_all_groups_filtered_by_parent", "t...
getmoto__moto-4951
Hi @MacHu-GWU, that attribute should be calculated inside the `LayerVersion`-class: https://github.com/getmoto/moto/blob/368fa07ec35aa6806c839a1f4883426159179127/moto/awslambda/models.py#L371 If the S3 file exists, it will use that information. If it does not exist, it will throw an error (`The specified bucket d...
diff --git a/moto/cognitoidp/models.py b/moto/cognitoidp/models.py --- a/moto/cognitoidp/models.py +++ b/moto/cognitoidp/models.py @@ -578,6 +578,14 @@ def get_user_extra_data_by_client_id(self, client_id, username): extra_data.update({attribute[0]["Name"]: attribute[0]["Value"]}) return e...
diff --git a/tests/test_batch/test_batch_compute_envs.py b/tests/test_batch/test_batch_compute_envs.py --- a/tests/test_batch/test_batch_compute_envs.py +++ b/tests/test_batch/test_batch_compute_envs.py @@ -395,3 +395,47 @@ def test_create_fargate_managed_compute_environment(compute_env_type): # Should have create...
2023-09-09T22:27:54Z
EKS CreateCluster response encryptionConfig property should be a List/Array # Description When using moto server, the `CreateCluster` EKS API, the Cluster response object should contain `encryptionConfig` as a List of at-most-one `EncryptionConfig` maps/objects (as per example here: https://docs.aws.amazon.com/eks/...
getmoto/moto
3118090fdc38de64e0a7aef969b3b1992c1703f5
3.0
[ "mypy/test/testcheck.py::TypeCheckSuite::testEnumReusedKeys", "mypy/test/testcheck.py::TypeCheckSuite::testEnumReusedKeysOverlapWithLocalVar", "mypy/test/testcheck.py::TypeCheckSuite::testEnumUnique", "mypy/test/testcheck.py::TypeCheckSuite::testEnumValueSameType", "mypy/test/testcheck.py::TypeCheckSuite::t...
[ "mypy/test/testcheck.py::TypeCheckSuite::testMypyPathAndPython2Dir_python2" ]
getmoto__moto-6816
diff --git a/moto/dynamodb/exceptions.py b/moto/dynamodb/exceptions.py --- a/moto/dynamodb/exceptions.py +++ b/moto/dynamodb/exceptions.py @@ -207,14 +207,14 @@ class TransactionCanceledException(DynamodbException): def __init__(self, errors): msg = self.cancel_reason_msg.format( - ", ".join(...
diff --git a/test-data/unit/check-modules.test b/test-data/unit/check-modules.test --- a/test-data/unit/check-modules.test +++ b/test-data/unit/check-modules.test @@ -3094,3 +3094,16 @@ ignore_missing_imports = true \[[tool.mypy.overrides]] module = "foobar1" ignore_missing_imports = true + +[case testIgnoreErrorFro...
2022-05-14 01:52:33
delete_secret accepts invalid input and then fails The following call is accepted by moto `delete_secret` validations but runtime AWS error is issued ``` self.secrets_client.delete_secret( SecretId=creds_name, RecoveryWindowInDays=0, ForceDeleteWithoutR...
python/mypy
8c0c688c7b37f87dfcc00dbf6318d4dd959f91f5
4.0
[]
[ "tests/test_route53/test_route53.py::test_change_resource_record_set_twice" ]
End of preview. Expand in Data Studio

edition_0080_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
5