{"id":18400878,"url":"https://github.com/magicmark/moto-issue-2","last_synced_at":"2025-10-17T21:06:56.859Z","repository":{"id":204561015,"uuid":"712121739","full_name":"magicmark/moto-issue-2","owner":"magicmark","description":null,"archived":false,"fork":false,"pushed_at":"2023-10-30T22:03:30.000Z","size":29,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-06-10T15:08:04.341Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/magicmark.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-10-30T20:44:07.000Z","updated_at":"2023-10-30T20:44:33.000Z","dependencies_parsed_at":null,"dependency_job_id":"5ceb1005-2c0b-4dfa-9193-ab6f706fad5c","html_url":"https://github.com/magicmark/moto-issue-2","commit_stats":null,"previous_names":["magicmark/moto-issue-2"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/magicmark/moto-issue-2","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/magicmark%2Fmoto-issue-2","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/magicmark%2Fmoto-issue-2/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/magicmark%2Fmoto-issue-2/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/magicmark%2Fmoto-issue-2/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/magicmark","download_url":"https://codeload.github.com/magicmark/moto-issue-2/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/magicmark%2Fmoto-issue-2/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270482341,"owners_count":24591342,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-14T02:00:10.309Z","response_time":75,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-06T02:37:10.241Z","updated_at":"2025-10-17T21:06:51.818Z","avatar_url":"https://github.com/magicmark.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# moto-issue-2\n\n### Repro instructions \n\n```bash\n$ git clone https://github.com/magicmark/moto-issue-demo-2.git\n$ cd moto-issue-2\n$ poetry install\n$ poetry run pytest -vvv\n```\n\n### Output\n\n```\n=========================================================================== test session starts ============================================================================\nplatform linux -- Python 3.8.13, pytest-7.4.3, pluggy-1.3.0\nrootdir: /nail/home/markl/pg/moto-issue-demo\ncollected 1 item                                                                                                                                                           \n\ntests/yikes_test.py F                                                                                                                                                [100%]\n\n================================================================================= FAILURES =================================================================================\n________________________________________________________________________________ test_yikes ________________________________________________________________________________\n\ndynamodb = dynamodb.ServiceResource()\n\n    def test_yikes(dynamodb):\n        dynamodb.Table(\"meal-orders\").put_item(\n            Item={\n                \"customer\": \"mark\",\n                \"mealtime\": \"breakfast\",\n            }\n        )\n    \n\u003e       assert 'Item' not in dynamodb.Table(\"meal-orders\").get_item(\n            Key={\n                \"customer\": \"mark\",\n                \"mealtime\": \"lunch\",\n            }\n        )\nE       AssertionError: assert 'Item' not in {'Item': {'customer': 'mark', 'mealtime': 'breakfast'}, 'ResponseMetadata': {'HTTPHeaders': {'date': 'Mon, 30 Oct 2023...eit'}, 'HTTPStatusCode': 200, 'RequestId': '77j7t488VZMp0LEtqw77cGXhTRPnS9W5Eu98ryU2drVYruC7veit', 'RetryAttempts': 0}}\nE        +  where {'Item': {'customer': 'mark', 'mealtime': 'breakfast'}, 'ResponseMetadata': {'HTTPHeaders': {'date': 'Mon, 30 Oct 2023...eit'}, 'HTTPStatusCode': 200, 'RequestId': '77j7t488VZMp0LEtqw77cGXhTRPnS9W5Eu98ryU2drVYruC7veit', 'RetryAttempts': 0}} = \u003cbound method ResourceFactory._create_action.\u003clocals\u003e.do_action of dynamodb.Table(name='meal-orders')\u003e(Key={'customer': 'mark', 'mealtime': 'lunch'})\nE        +    where \u003cbound method ResourceFactory._create_action.\u003clocals\u003e.do_action of dynamodb.Table(name='meal-orders')\u003e = dynamodb.Table(name='meal-orders').get_item\nE        +      where dynamodb.Table(name='meal-orders') = \u003cbound method ResourceFactory._create_class_partial.\u003clocals\u003e.create_resource of dynamodb.ServiceResource()\u003e('meal-orders')\nE        +        where \u003cbound method ResourceFactory._create_class_partial.\u003clocals\u003e.create_resource of dynamodb.ServiceResource()\u003e = dynamodb.ServiceResource().Table\n\ntests/yikes_test.py:32: AssertionError\n========================================================================= short test summary info ==========================================================================\nFAILED tests/yikes_test.py::test_yikes - AssertionError: assert 'Item' not in {'Item': {'customer': 'mark', 'mealtime': 'breakfast'}, 'ResponseMetadata': {'HTTPHeaders': {'date': 'Mon, 30 Oct 2023...eit'}, 'H...\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmagicmark%2Fmoto-issue-2","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmagicmark%2Fmoto-issue-2","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmagicmark%2Fmoto-issue-2/lists"}