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-5969 | (This bug is affecting `black`'s ability to build wheels for Python 3.12: https://github.com/psf/black/pull/3867#issuecomment-1712559289.)
> * Platform: Windows
(@JelleZijlstra is also running into this error locally using macOS)
@JukkaL do we need to add a `{"__dict__", PyObject_GenericGetDict, PyObject_GenericSetD... | diff --git a/mypy/nodes.py b/mypy/nodes.py
--- a/mypy/nodes.py
+++ b/mypy/nodes.py
@@ -2796,15 +2796,18 @@ def f(x: B[T]) -> T: ... # without T, Any would be used here
itself an alias), while the second cannot be subscripted because of
Python runtime limitation.
line and column: Line an column o... | diff --git a/test-data/unit/check-overloading.test b/test-data/unit/check-overloading.test
--- a/test-data/unit/check-overloading.test
+++ b/test-data/unit/check-overloading.test
@@ -6650,3 +6650,27 @@ def d(x: int) -> int: ...
def d(f: int, *, x: int) -> str: ...
def d(*args, **kwargs): ...
[builtins fixtures/tuple... | 2023-09-29T16:29:36Z | [Terraform] Creation of Guardduty GetDetector return 404
Hello, i tried to use moto as mock server for terraform code testing, during guardduty creation i got in debug mode error like
**Repro steps**:
Start moto server
Configure AWS provider for using custom endpoint
Create simple aws_guardduty_detector resourc... | getmoto/moto | e911341e6ad1bfe7f3930f38c36b26b25cdb0f94 | 4.1 | [
"tests/test_glue/test_datacatalog.py::test_delete_database",
"tests/test_glue/test_datacatalog.py::test_create_partition_already_exist",
"tests/test_glue/test_datacatalog.py::test_get_partitions_empty",
"tests/test_glue/test_datacatalog.py::test_create_database",
"tests/test_glue/test_datacatalog.py::test_b... | [
"tests/test_awslambda/test_lambda.py::test_update_function_ecr"
] |
getmoto__moto-5582 | diff --git a/moto/ses/models.py b/moto/ses/models.py
--- a/moto/ses/models.py
+++ b/moto/ses/models.py
@@ -127,7 +127,7 @@ class SESBackend(BaseBackend):
from moto.core import DEFAULT_ACCOUNT_ID
from moto.ses import ses_backends
- ses_backend = ses_backends[DEFAULT_ACCOUNT_ID]["global"]
+ ... | diff --git a/tests/test_glue/helpers.py b/tests/test_glue/helpers.py
--- a/tests/test_glue/helpers.py
+++ b/tests/test_glue/helpers.py
@@ -19,13 +19,17 @@ def create_database_input(database_name):
return database_input
-def create_database(client, database_name, database_input=None, catalog_id=None):
+def ... | 2022-09-29 22:05:55 | Invalid type inferred when overloading __call__ with generic self-type
Seems like mypy uses the first overloaded `__call__` signature when using self-type. There is no problem with overloading another dunder method (I tried `__get__`) or with regular overload (`__call__` but without self-type). If use another method n... | getmoto/moto | d3b16b3052dc611d2457da4ada7402baaa4b7611 | 4.2 | [
"tests/test_ec2/test_instances.py::test_run_instance_with_block_device_mappings_missing_ebs",
"tests/test_ec2/test_instances.py::test_get_instances_filtering_by_tag",
"tests/test_ec2/test_instances.py::test_run_instance_and_associate_public_ip",
"tests/test_ec2/test_instances.py::test_modify_instance_attribut... | [
"tests/test_ec2/test_route_tables.py::test_route_tables_filters_standard"
] | |
python__mypy-14178 | code above cobbled up from /tests/test_iot/test_iot_things.py
could add `assert "thingId" in thing` on L#15
Thanks for raising this @mikedambrogia - looks like we don't deal with `thing_id` at all at the moment. Marking it as an enhancement.
Out of interest, do you know the format that AWS uses for `thing_id`s? Ar... | diff --git a/mypy/message_registry.py b/mypy/message_registry.py
--- a/mypy/message_registry.py
+++ b/mypy/message_registry.py
@@ -43,7 +43,9 @@ def with_additional_msg(self, info: str) -> ErrorMessage:
RETURN_VALUE_EXPECTED: Final = ErrorMessage("Return value expected", codes.RETURN_VALUE)
NO_RETURN_EXPECTED: Final ... | diff --git a/tests/test_ec2/test_ec2_cloudformation.py b/tests/test_ec2/test_ec2_cloudformation.py
--- a/tests/test_ec2/test_ec2_cloudformation.py
+++ b/tests/test_ec2/test_ec2_cloudformation.py
@@ -694,3 +694,69 @@ def get_secgroup_by_tag(ec2, sg_):
return ec2.describe_security_groups(
Filters=[{"Name": ... | 2023-10-16 18:13:14 | Add longer than 4k plaintext encryption test to `tests/test_kms/test_kms_encrypt.py`
## New feature request
Issue:
When run test against kms_encrypt, moto can pickup empty 'plaintext' correctly like below ...
The test code:
```
@mock_kms
def test_encrypt_void_text_with_kms(kms_client, caplog):
caplog.set... | python/mypy | 2c9c7a7a63e7ca0526e433f76902c40801ab02cc | 5.0 | [
"tests/test_dynamodb/test_dynamodb.py::test_remove_list_index__remove_existing_nested_index",
"tests/test_dynamodb/test_dynamodb.py::test_basic_projection_expressions_using_query_with_attr_expression_names",
"tests/test_dynamodb/test_dynamodb.py::test_transact_write_items_put_conditional_expressions_return_valu... | [
"tests/test_iotdata/test_iotdata.py::test_publish"
] |
python__mypy-16869 | > Could you pls confirm that 'put_trail_event_selectors' and 'get_trail_event_selectors' are supported at this version or not? Thank you.
>
Confirmed - Moto does not have support for those methods, at all.
A list of what is and is not supported, per service, per version, can be found in the docs: http://docs.getm... | diff --git a/moto/autoscaling/models.py b/moto/autoscaling/models.py
--- a/moto/autoscaling/models.py
+++ b/moto/autoscaling/models.py
@@ -163,7 +163,8 @@ def create_from_instance(cls, name, instance, backend):
spot_price=None,
ebs_optimized=instance.ebs_optimized,
associate_publi... | diff --git a/tests/test_dynamodb/__init__.py b/tests/test_dynamodb/__init__.py
--- a/tests/test_dynamodb/__init__.py
+++ b/tests/test_dynamodb/__init__.py
@@ -5,7 +5,7 @@
from uuid import uuid4
-def dynamodb_aws_verified(func):
+def dynamodb_aws_verified(create_table: bool = True):
"""
Function that is v... | 2023-10-15 19:15:25 | Look into @python2 subdirectories of mypy search path entries in Python 2 mode
Typeshed uses the `@python2` subdirectory for Python 2 variants of stubs. Mypy could also support this convention for custom search paths. This would make dealing with mixed Python 2/3 codebases a little easier.
If there is a user-defined... | getmoto/moto | 7b4cd492ffa6768dfbd733b3ca5f55548d308d00 | 4.2 | [
"mypy/test/testcheck.py::TypeCheckSuite::testNarrowingEqualityFlipFlop"
] | [
"tests/test_ec2/test_instances.py::test_run_instances_with_unknown_security_group"
] |
python__mypy-12762 | 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/ec2/models/instances.py b/moto/ec2/models/instances.py
--- a/moto/ec2/models/instances.py
+++ b/moto/ec2/models/instances.py
@@ -111,6 +111,7 @@ def __init__(
self.instance_type: str = kwargs.get("instance_type", "m1.small")
self.region_name = kwargs.get("region_name", "us-east-1")
... | 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
@@ -803,6 +803,45 @@ def test_transact_write_items_multip... | 2022-05-13 19:55:51 | Moto allows syntactically invalid update expressions for DynamoDB
When using the DynamoDB `UpdateItem` API, it is necessary to provide an `UpdateExpression` describing which attributes to update, and the new values. Multiple updates in the same expression are separated by commas. The real DynamoDB does not allow this e... | python/mypy | af318c17b9483c4102fb453e384ebd517cdcedd6 | 0.990 | [] | [
"tests/test_dynamodb/test_dynamodb_update_expressions.py::test_update_different_map_elements_in_single_request"
] |
python__mypy-15846 | diff --git a/moto/kms/models.py b/moto/kms/models.py
--- a/moto/kms/models.py
+++ b/moto/kms/models.py
@@ -374,7 +374,8 @@ def alias_exists(self, alias_name):
return False
def add_alias(self, target_key_id, alias_name):
- self.key_to_aliases[target_key_id].add(alias_name)
+ raw_key_id = se... | 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... | 2024-03-14T21:04:19Z | Feature Request: Support apigateway patchOperations for 'path': '/apiStages'
When calling `client.update_usage_plan(usagePlanId=usage_plan_id, patchOperations=[{
'op': 'add',
'path': '/apiStages',
'value': f'{api_gw_id}:{api_gw_stage}',}])`
The api-gw should be attached to the usage plan but... | getmoto/moto | 30c2aeab29c1a51805f0bed4a7c8df5b4d2f11af | 5.0 | [
"tests/test_glue/test_datacatalog.py::test_delete_database",
"tests/test_glue/test_datacatalog.py::test_create_partition_already_exist",
"tests/test_glue/test_datacatalog.py::test_get_partitions_empty",
"tests/test_glue/test_datacatalog.py::test_create_database",
"tests/test_glue/test_datacatalog.py::test_b... | [
"tests/test_kms/test_kms_encrypt.py::test_re_encrypt_using_aliases"
] | |
getmoto__moto-7579 | diff --git a/moto/core/utils.py b/moto/core/utils.py
--- a/moto/core/utils.py
+++ b/moto/core/utils.py
@@ -416,6 +416,8 @@ def __contains__(self, item):
return item in self.regions or item in self.keys()
def __getitem__(self, item):
+ if item in self.keys():
+ return super().__getitem_... | diff --git a/test-data/unit/check-abstract.test b/test-data/unit/check-abstract.test
--- a/test-data/unit/check-abstract.test
+++ b/test-data/unit/check-abstract.test
@@ -735,7 +735,44 @@ class A(metaclass=ABCMeta):
def x(self) -> int: pass
@x.setter
def x(self, x: int) -> None: pass
-[out]
+
+[case test... | 2022-08-31 16:23:34 | Default IAM user is not support in AWS China. user/moto
I have a code like that,
```
def assume_cross_account_role_via_arn(role_arn, role_session_name=None, region_name=None) -> boto3.Session:
_session = boto3.Session(region_name=region_name)
session = assume_role(_session, role_arn, RoleSessionName=role_s... | python/mypy | 7e2cd923200fc0942158772dd212b9746c7f8fd7 | 3.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... | [
"tests/test_dynamodb/exceptions/test_dynamodb_exceptions.py::test_gsi_key_cannot_be_empty"
] | |
getmoto__moto-5899 | diff --git a/mypy/checkmember.py b/mypy/checkmember.py
--- a/mypy/checkmember.py
+++ b/mypy/checkmember.py
@@ -317,17 +317,18 @@ def analyze_union_member_access(name: str, typ: UnionType, mx: MemberContext) ->
def analyze_none_member_access(name: str, typ: NoneType, mx: MemberContext) -> Type:
- if mx.chk.shoul... | 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... | 2022-04-11 19:00:42 | TypedDict does not allow .get("missing_key", ...) to pass
**Bug Report**
MyPy does not allow `.get("key")` on a TypedDict if the key does not exist. This nullifies the usefulness of `.get`, and seems to be in direct contradiction to PEP 589:
"Operations with arbitrary str keys (instead of string literals or other... | getmoto/moto | 0ba2561539e9bb03447b0ff1ab952626ece8f548 | 0.920 | [
"tests/test_organizations/test_organizations_boto3.py::test_describe_organization",
"tests/test_organizations/test_organizations_boto3.py::test_aiservices_opt_out_policy",
"tests/test_organizations/test_organizations_boto3.py::test_list_accounts_pagination",
"tests/test_organizations/test_organizations_boto3.... | [
"mypy/test/teststubgen.py::StubgenPythonSuite::stubgen.test::testGenericClassTypeVarTuplePy311",
"mypy/test/teststubgen.py::StubgenPythonSuite::stubgen.test::testGenericClassTypeVarTuplePy311_semanal"
] | |
getmoto__moto-6641 | Thanks for raising this @BlakeSearlSonocent. A PR would be very welcome, let us know if you need some pointers! | diff --git a/mypy/checker.py b/mypy/checker.py
--- a/mypy/checker.py
+++ b/mypy/checker.py
@@ -960,7 +960,10 @@ def _visit_func_def(self, defn: FuncDef) -> None:
# Function definition overrides a variable initialized via assignment or a
# decorated function.
orig_type ... | diff --git a/tests/test_iot/test_iot_things.py b/tests/test_iot/test_iot_things.py
--- a/tests/test_iot/test_iot_things.py
+++ b/tests/test_iot/test_iot_things.py
@@ -11,12 +11,13 @@ def test_create_thing():
thing = client.create_thing(thingName=name)
assert thing["thingName"] == name
- assert "thingArn"... | 2022-05-08 19:56:08 | `put_item` using `batch_writer` does not validate empty strings
Issue similar to #1129
When putting items with empty strings using `batch_writer` `ClientError` is not raised.
Using `moto==3.1.16`
Failing test case:
```python
import pytest
import boto3
import botocore
from moto import mock_dynamodb
@pyt... | python/mypy | a7e0f6f8b0ec5de2fe7b804c9ac7160893ae5bf8 | 4.1 | [] | [
"mypy/test/testdaemon.py::DaemonSuite::daemon.test::testUnusedTypeIgnorePreservedOnRerun",
"mypy/test/testdaemon.py::DaemonSuite::daemon.test::testTypeIgnoreWithoutCodePreservedOnRerun",
"mypy/test/testdaemon.py::DaemonSuite::daemon.test::testTypeIgnoreWithoutCodePreservedAfterChange",
"mypy/test/testdaemon.p... |
getmoto__moto-5752 | diff --git a/moto/apigateway/exceptions.py b/moto/apigateway/exceptions.py
--- a/moto/apigateway/exceptions.py
+++ b/moto/apigateway/exceptions.py
@@ -1,26 +1,34 @@
from moto.core.exceptions import JsonRESTError
-class BadRequestException(JsonRESTError):
+class ApiGatewayException(JsonRESTError):
pass
-cl... | diff --git a/tests/test_ssm/test_ssm_boto3.py b/tests/test_ssm/test_ssm_boto3.py
--- a/tests/test_ssm/test_ssm_boto3.py
+++ b/tests/test_ssm/test_ssm_boto3.py
@@ -67,21 +67,14 @@ def test_delete_parameters():
def test_get_parameters_by_path():
client = boto3.client("ssm", region_name="us-east-1")
- client.pu... | 2022-02-18 22:52:13 | EventBridge API Destinations
A few weeks ago AWS announced the new [API Destinations](https://aws.amazon.com/blogs/compute/using-api-destinations-with-amazon-eventbridge/) functionality for EventBridge and I'm eager to try it out and implement it into `moto` directly, but I need some guidance on triggering the API endp... | python/mypy | 9611e2d0b1d9130ca1591febdd60a3523cf739eb | 4.0 | [
"tests/test_core/test_ec2_vpc_endpoint_services.py::test_describe_vpc_endpoint_services_bad_args",
"tests/test_core/test_ec2_vpc_endpoint_services.py::test_describe_vpc_default_endpoint_services"
] | [
"tests/test_cloudfront/test_cloudfront_invalidation.py::test_list_invalidations__no_entries"
] |
End of preview. Expand in Data Studio
edition_0169_SWE-Gym-SWE-Gym-readymade
A Readymade by TheFactoryX
Original Dataset
Process
This dataset is a "readymade" - inspired by Marcel Duchamp's concept of taking everyday objects and recontextualizing them as art.
What we did:
- Selected the original dataset from Hugging Face
- Shuffled each column independently
- Destroyed all row-wise relationships
- 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