File size: 7,809 Bytes
d61821a | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 | {
"commit": "4abcd1719066edf9ecc249f2da4a16c809d7b181",
"parent": "9b6d89edad07979518a399229c6f55bffeb9af08",
"repository_id": "R003",
"schema_version": 1,
"study": "Study 5 fresh validation",
"task_id": "TASK_S5_R003_006",
"valid_end_to_end": true,
"validation": {
"commands": [
"python -m pytest -q tests/unit tests/unit/objects"
],
"elapsed_seconds": 1.5497832919936627,
"gold": [
{
"command": "python -m pytest -q tests/unit tests/unit/objects",
"elapsed_seconds": 0.4357310829218477,
"returncode": 0,
"stderr": "",
"stdout": "......................................................s..s.............. [ 24%]\n........................................................................ [ 49%]\n...............................s........................................ [ 73%]\n........................................................................ [ 98%]\n.... [100%]\n289 passed, 3 skipped in 0.26s\n",
"timed_out": false
}
],
"hidden": [
{
"command": "python -m pytest -q tests/unit tests/unit/objects",
"elapsed_seconds": 0.4593457079026848,
"returncode": 1,
"stderr": "",
"stdout": "......................................................s..s.............. [ 24%]\n........................................................................ [ 49%]\n...............................s........................................ [ 73%]\n............................................................FE.......... [ 98%]\n..... [100%]\n==================================== ERRORS ====================================\n_________________ ERROR at teardown of test_create_user_runner _________________\n\n @pytest.fixture\n def resp_runner_create():\n> with responses.RequestsMock() as rsps:\n\ntests/unit/objects/test_users.py:246: \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 0x109b90ad0>, 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 [('POST', 'http://localhost/api/v4/user/runners')]\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_create_user_runner ____________________________\n\ncurrent_user = <CurrentUser username:username>\nresp_runner_create = <responses.RequestsMock object at 0x109b90ad0>\n\n def test_create_user_runner(current_user, resp_runner_create):\n> runner = current_user.runners.create({\"runner_type\": \"instance_type\"})\n\ntests/unit/objects/test_users.py:323: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = <CurrentUser username:username>, name = 'runners'\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: 'CurrentUser' object has no attribute 'runners'\n\ngitlab/base.py:134: AttributeError\n=========================== short test summary info ============================\nFAILED tests/unit/objects/test_users.py::test_create_user_runner - AttributeE...\nERROR tests/unit/objects/test_users.py::test_create_user_runner - AssertionEr...\n1 failed, 288 passed, 3 skipped, 1 error in 0.28s\n",
"timed_out": false
}
],
"hidden_apply": {
"elapsed_seconds": 0.011059749871492386,
"returncode": 0,
"stderr": "",
"stdout": ""
},
"original": [
{
"command": "python -m pytest -q tests/unit tests/unit/objects",
"elapsed_seconds": 0.560404125135392,
"returncode": 0,
"stderr": "",
"stdout": "......................................................s..s.............. [ 24%]\n........................................................................ [ 49%]\n...............................s........................................ [ 74%]\n........................................................................ [ 98%]\n... [100%]\n288 passed, 3 skipped in 0.38s\n",
"timed_out": false
}
],
"reason": null,
"source_apply": {
"elapsed_seconds": 0.0110210832208395,
"returncode": 0,
"stderr": "",
"stdout": ""
},
"valid": true
}
}
|