{"action":"created","issue":{"url":"https://api.github.com/repos/opsdroid/opsdroid/issues/301","repository_url":"https://api.github.com/repos/opsdroid/opsdroid","labels_url":"https://api.github.com/repos/opsdroid/opsdroid/issues/301/labels{/name}","comments_url":"https://api.github.com/repos/opsdroid/opsdroid/issues/301/comments","events_url":"https://api.github.com/repos/opsdroid/opsdroid/issues/301/events","html_url":"https://github.com/opsdroid/opsdroid/issues/301","id":268080282,"number":301,"title":"Updating asynctest to 0.11.0 causes failures","user":{"login":"jacobtomlinson","id":1610850,"avatar_url":"https://avatars3.githubusercontent.com/u/1610850?v=4","gravatar_id":"","url":"https://api.github.com/users/jacobtomlinson","html_url":"https://github.com/jacobtomlinson","followers_url":"https://api.github.com/users/jacobtomlinson/followers","following_url":"https://api.github.com/users/jacobtomlinson/following{/other_user}","gists_url":"https://api.github.com/users/jacobtomlinson/gists{/gist_id}","starred_url":"https://api.github.com/users/jacobtomlinson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jacobtomlinson/subscriptions","organizations_url":"https://api.github.com/users/jacobtomlinson/orgs","repos_url":"https://api.github.com/users/jacobtomlinson/repos","events_url":"https://api.github.com/users/jacobtomlinson/events{/privacy}","received_events_url":"https://api.github.com/users/jacobtomlinson/received_events","type":"User","site_admin":false},"labels":[{"id":413084777,"url":"https://api.github.com/repos/opsdroid/opsdroid/labels/bug","name":"bug","color":"ee0701","default":true},{"id":706529522,"url":"https://api.github.com/repos/opsdroid/opsdroid/labels/hacktoberfest","name":"hacktoberfest","color":"b60205","default":false},{"id":722256105,"url":"https://api.github.com/repos/opsdroid/opsdroid/labels/tests","name":"tests","color":"cfd600","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-10-24T15:34:06Z","updated_at":"2017-10-24T20:35:20Z","closed_at":null,"author_association":"OWNER","body":"# Description\r\nWhen updating asynctest to 0.11.0 there are six tests which begin failing.\r\n\r\nAll tests fail with the same error `E TypeError: object MagicMock can't be used in 'await' expression`.\r\n\r\nThe tests are:\r\n- TestMemory.test_database_callouts\r\n- TestParserAlways.test_parse_always_raises\r\n- TestParserDialogflow.test_parse_dialogflow_raises\r\n- TestParserLuisai.test_parse_luisai_raises\r\n- TestParserRegex.test_parse_regex_raises\r\n- TestParserWitai.test_parse_witai_raises\r\n\r\n## Steps to Reproduce\r\nChange `asynctest==0.10.1` to `asynctest==0.11.0` in `requirements_test.txt` and run `tox`.\r\n\r\n## Expected Functionality\r\nTests should pass.\r\n\r\n## Experienced Functionality\r\nTests fail. \r\n\r\nLog is too long to paste here (>1000 lines). See the [failed Travis CI run](https://travis-ci.org/opsdroid/opsdroid/jobs/291985981) from @pyup-bot in #296 for info. _Hint: Doing a find for the string `_ Test` will help you find each section._\r\n\r\n## Versions\r\n- **Opsdroid version:** v0.9.1-32-g4a71bc0 (master)\r\n- **Python version:** 3.5 and 3.6\r\n- **OS/Docker version:** Travis (ubuntu trusty)\r\n\r\n## Configuration File\r\nN/A\r\n\r\n## Additional Details\r\nLooking at the [first test](https://github.com/opsdroid/opsdroid/blob/master/tests/test_memory.py#L25) as an example it appears to be complaining about not being able to `await` a `MagicMock` despite it actually being a `CoroutineMock` which should be await-able.\r\n\r\nIt looks like this has been picked up in Martiusweb/asynctest#52. However it is unclear whether this is a bug in the new version or a misuse of `CoroutineMock` in opsdroid.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/opsdroid/opsdroid/issues/comments/339122733","html_url":"https://github.com/opsdroid/opsdroid/issues/301#issuecomment-339122733","issue_url":"https://api.github.com/repos/opsdroid/opsdroid/issues/301","id":339122733,"user":{"login":"jacobtomlinson","id":1610850,"avatar_url":"https://avatars3.githubusercontent.com/u/1610850?v=4","gravatar_id":"","url":"https://api.github.com/users/jacobtomlinson","html_url":"https://github.com/jacobtomlinson","followers_url":"https://api.github.com/users/jacobtomlinson/followers","following_url":"https://api.github.com/users/jacobtomlinson/following{/other_user}","gists_url":"https://api.github.com/users/jacobtomlinson/gists{/gist_id}","starred_url":"https://api.github.com/users/jacobtomlinson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jacobtomlinson/subscriptions","organizations_url":"https://api.github.com/users/jacobtomlinson/orgs","repos_url":"https://api.github.com/users/jacobtomlinson/repos","events_url":"https://api.github.com/users/jacobtomlinson/events{/privacy}","received_events_url":"https://api.github.com/users/jacobtomlinson/received_events","type":"User","site_admin":false},"created_at":"2017-10-24T20:35:20Z","updated_at":"2017-10-24T20:35:20Z","author_association":"OWNER","body":"Fixed in #302 "}}
{"actor":{"display_login":"jacobtomlinson"}}