| { |
| "commit": "174d992e49f1e5171fee8893a1713f30324bbf97", |
| "parent": "a2ab54ceb40eca1e6e71f7779a418591426b2b2c", |
| "repository_id": "R003", |
| "schema_version": 1, |
| "task_id": "TASK_S2_R003_009", |
| "valid_end_to_end": true, |
| "validation": { |
| "commands": [ |
| "python -m pytest -q tests/unit/objects" |
| ], |
| "elapsed_seconds": 1.4997267499566078, |
| "gold": [ |
| { |
| "command": "python -m pytest -q tests/unit/objects", |
| "elapsed_seconds": 0.4217844579834491, |
| "returncode": 0, |
| "stderr": "", |
| "stdout": "....................................................................s..s [ 21%]\n........................................................................ [ 42%]\n........................................................................ [ 63%]\n..s..................................................................... [ 84%]\n.................................................... [100%]\n337 passed, 3 skipped in 0.25s\n", |
| "timed_out": false |
| } |
| ], |
| "hidden": [ |
| { |
| "command": "python -m pytest -q tests/unit/objects", |
| "elapsed_seconds": 0.4460919168777764, |
| "returncode": 1, |
| "stderr": "", |
| "stdout": "....................................................................s..s [ 21%]\n......................................................................FE [ 42%]\n........................................................................ [ 63%]\n...s.................................................................... [ 84%]\n..................................................... [100%]\n==================================== ERRORS ====================================\n________________ ERROR at teardown of test_list_related_issues _________________\n\n @pytest.fixture\n def resp_list_merge_requests_related_issues():\n> with responses.RequestsMock() as rsps:\n\ntests/unit/objects/test_merge_requests.py:172: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n/Users/mandeepsidhu/Desktop/code/pending-work-research/agent-harness/.venv/lib/python3.11/site-packages/responses/__init__.py:996: in __exit__\n self.stop(allow_assert=success)\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = <responses.RequestsMock object at 0x1074382d0>, allow_assert = True\n\n def stop(self, allow_assert: bool = True) -> None:\n if self._patcher:\n # prevent stopping unstarted patchers\n self._patcher.stop()\n \n # once patcher is stopped, clean it. This is required to create a new\n # fresh patcher on self.start()\n self._patcher = None\n \n if not self.assert_all_requests_are_fired:\n return\n \n if not allow_assert:\n return\n \n not_called = [m for m in self.registered() if m.call_count == 0]\n if not_called:\n> raise AssertionError(\n \"Not all requests have been executed {!r}\".format(\n [(match.method, match.url) for match in not_called]\n )\n )\nE AssertionError: Not all requests have been executed [('GET', 'http://localhost/api/v4/projects/1/merge_requests/1/related_issues')]\n\n/Users/mandeepsidhu/Desktop/code/pending-work-research/agent-harness/.venv/lib/python3.11/site-packages/responses/__init__.py:1233: AssertionError\n=================================== FAILURES ===================================\n___________________________ test_list_related_issues ___________________________\n\nproject = <Project id:1>\nresp_list_merge_requests_related_issues = <responses.RequestsMock object at 0x1074382d0>\n\n def test_list_related_issues(project, resp_list_merge_requests_related_issues):\n mr = project.mergerequests.get(1)\n> this_mr_related_issues = mr.related_issues()\n\ntests/unit/objects/test_merge_requests.py:216: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = <ProjectMergeRequest iid:1>, name = 'related_issues'\n\n def __getattr__(self, name: str) -> Any:\n if name in self.__dict__[\"_updated_attrs\"]:\n return self.__dict__[\"_updated_attrs\"][name]\n \n if name in self.__dict__[\"_attrs\"]:\n value = self.__dict__[\"_attrs\"][name]\n # If the value is a list, we copy it in the _updated_attrs dict\n # because we are not able to detect changes made on the object\n # (append, insert, pop, ...). Without forcing the attr\n # creation __setattr__ is never called, the list never ends up\n # in the _updated_attrs dict, and the update() and save()\n # method never push the new data to the server.\n # See https://github.com/python-gitlab/python-gitlab/issues/306\n #\n # note: _parent_attrs will only store simple values (int) so we\n # don't make this check in the next block.\n if isinstance(value, list):\n self.__dict__[\"_updated_attrs\"][name] = value[:]\n return self.__dict__[\"_updated_attrs\"][name]\n \n return value\n \n if name in self.__dict__[\"_parent_attrs\"]:\n return self.__dict__[\"_parent_attrs\"][name]\n \n message = f\"{type(self).__name__!r} object has no attribute {name!r}\"\n if self._created_from_list:\n message = (\n f\"{message}\\n\\n\"\n + textwrap.fill(\n f\"{self.__class__!r} was created via a list() call and \"\n f\"only a subset of the data may be present. To ensure \"\n f\"all data is present get the object using a \"\n f\"get(object.id) call. For more details, see:\"\n )\n + f\"\\n\\n{_URL_ATTRIBUTE_ERROR}\"\n )\n elif self._lazy:\n message = f\"{message}\\n\\n\" + textwrap.fill(\n f\"If you tried to access object attributes returned from the server, \"\n f\"note that {self.__class__!r} was created as a `lazy` object and was \"\n f\"not initialized with any data.\"\n )\n> raise AttributeError(message)\nE AttributeError: 'ProjectMergeRequest' object has no attribute 'related_issues'\n\ngitlab/base.py:134: AttributeError\n=========================== short test summary info ============================\nFAILED tests/unit/objects/test_merge_requests.py::test_list_related_issues - ...\nERROR tests/unit/objects/test_merge_requests.py::test_list_related_issues - A...\n1 failed, 336 passed, 3 skipped, 1 error in 0.27s\n", |
| "timed_out": false |
| } |
| ], |
| "hidden_apply": { |
| "elapsed_seconds": 0.009384915931150317, |
| "returncode": 0, |
| "stderr": "", |
| "stdout": "" |
| }, |
| "original": [ |
| { |
| "command": "python -m pytest -q tests/unit/objects", |
| "elapsed_seconds": 0.5684731660876423, |
| "returncode": 0, |
| "stderr": "", |
| "stdout": "....................................................................s..s [ 21%]\n........................................................................ [ 42%]\n........................................................................ [ 63%]\n.s...................................................................... [ 84%]\n................................................... [100%]\n336 passed, 3 skipped in 0.39s\n", |
| "timed_out": false |
| } |
| ], |
| "reason": null, |
| "source_apply": { |
| "elapsed_seconds": 0.00983520783483982, |
| "returncode": 0, |
| "stderr": "", |
| "stdout": "" |
| }, |
| "valid": true |
| } |
| } |
|
|