{"action":"closed","issue":{"url":"https://api.github.com/repos/sanoma/django-arctic/issues/133","repository_url":"https://api.github.com/repos/sanoma/django-arctic","labels_url":"https://api.github.com/repos/sanoma/django-arctic/issues/133/labels{/name}","comments_url":"https://api.github.com/repos/sanoma/django-arctic/issues/133/comments","events_url":"https://api.github.com/repos/sanoma/django-arctic/issues/133/events","html_url":"https://github.com/sanoma/django-arctic/issues/133","id":188492286,"number":133,"title":"Tests for mixins are broken","user":{"login":"andreyrusanov","id":3986031,"avatar_url":"https://avatars.githubusercontent.com/u/3986031?v=3","gravatar_id":"","url":"https://api.github.com/users/andreyrusanov","html_url":"https://github.com/andreyrusanov","followers_url":"https://api.github.com/users/andreyrusanov/followers","following_url":"https://api.github.com/users/andreyrusanov/following{/other_user}","gists_url":"https://api.github.com/users/andreyrusanov/gists{/gist_id}","starred_url":"https://api.github.com/users/andreyrusanov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andreyrusanov/subscriptions","organizations_url":"https://api.github.com/users/andreyrusanov/orgs","repos_url":"https://api.github.com/users/andreyrusanov/repos","events_url":"https://api.github.com/users/andreyrusanov/events{/privacy}","received_events_url":"https://api.github.com/users/andreyrusanov/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":{"login":"MaartenPI","id":1853053,"avatar_url":"https://avatars.githubusercontent.com/u/1853053?v=3","gravatar_id":"","url":"https://api.github.com/users/MaartenPI","html_url":"https://github.com/MaartenPI","followers_url":"https://api.github.com/users/MaartenPI/followers","following_url":"https://api.github.com/users/MaartenPI/following{/other_user}","gists_url":"https://api.github.com/users/MaartenPI/gists{/gist_id}","starred_url":"https://api.github.com/users/MaartenPI/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MaartenPI/subscriptions","organizations_url":"https://api.github.com/users/MaartenPI/orgs","repos_url":"https://api.github.com/users/MaartenPI/repos","events_url":"https://api.github.com/users/MaartenPI/events{/privacy}","received_events_url":"https://api.github.com/users/MaartenPI/received_events","type":"User","site_admin":false},"assignees":[{"login":"MaartenPI","id":1853053,"avatar_url":"https://avatars.githubusercontent.com/u/1853053?v=3","gravatar_id":"","url":"https://api.github.com/users/MaartenPI","html_url":"https://github.com/MaartenPI","followers_url":"https://api.github.com/users/MaartenPI/followers","following_url":"https://api.github.com/users/MaartenPI/following{/other_user}","gists_url":"https://api.github.com/users/MaartenPI/gists{/gist_id}","starred_url":"https://api.github.com/users/MaartenPI/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MaartenPI/subscriptions","organizations_url":"https://api.github.com/users/MaartenPI/orgs","repos_url":"https://api.github.com/users/MaartenPI/repos","events_url":"https://api.github.com/users/MaartenPI/events{/privacy}","received_events_url":"https://api.github.com/users/MaartenPI/received_events","type":"User","site_admin":false}],"milestone":null,"comments":1,"created_at":"2016-11-10T12:10:33Z","updated_at":"2016-11-28T13:34:45Z","closed_at":"2016-11-28T13:34:44Z","body":"Currently tests in develop branch are broken(by code from commit 578f43d961cf8101c95412ddfe51477f15536fff)\r\n\r\nThe output is:\r\n```bash\r\n============================================================================================ test session starts ============================================================================================\r\nplatform linux2 -- Python 2.7.12, pytest-2.9.2, py-1.4.31, pluggy-0.3.1\r\ndjango settings: example.settings (from ini file)\r\nrootdir: /home/andrey/Projects/arctic, inifile: setup.cfg\r\nplugins: pythonpath-0.7.1, django-2.9.1, cov-2.3.1\r\ncollected 21 items \r\n\r\ntests/test_cms.py ..\r\ntests/test_layout_mixin.py FFFFF\r\ntests/test_virtual_fields.py ..\r\ntests/test_generics/test_list_view.py ......\r\ntests/test_users/test_create.py ...\r\ntests/test_users/test_list.py .\r\ntests/test_users/test_update.py ..\r\n\r\n---------- coverage: platform linux2, python 2.7.12-final-0 ----------\r\nName                                 Stmts   Miss  Cover\r\n--------------------------------------------------------\r\narctic/__init__.py                       1      0   100%\r\narctic/filters.py                       46      9    80%\r\narctic/generics.py                     356     68    81%\r\narctic/loading.py                       19      8    58%\r\narctic/mixins.py                       202    114    44%\r\narctic/models.py                        14      0   100%\r\narctic/signals.py                       16      0   100%\r\narctic/templatetags/__init__.py          0      0   100%\r\narctic/templatetags/arctic_tags.py     106     61    42%\r\narctic/users/__init__.py                 0      0   100%\r\narctic/users/forms.py                   46      1    98%\r\narctic/users/views.py                   40      0   100%\r\narctic/utils.py                         98     10    90%\r\narctic/views.py                         33      8    76%\r\nexample/__init__.py                      0      0   100%\r\nexample/articles/__init__.py             0      0   100%\r\nexample/articles/forms.py               10      0   100%\r\nexample/articles/inlines.py              8      8     0%\r\nexample/articles/models.py              20      3    85%\r\nexample/articles/views.py              114     12    89%\r\nexample/dashboard/__init__.py            0      0   100%\r\nexample/dashboard/models.py              0      0   100%\r\nexample/dashboard/views.py               9      2    78%\r\nexample/example/__init__.py              0      0   100%\r\nexample/example/arctic.py                5      0   100%\r\nexample/manage.py                        6      6     0%\r\n--------------------------------------------------------\r\nTOTAL                                 1149    310    73%\r\n\r\n\r\n================================================================================================= FAILURES ==================================================================================================\r\n___________________________________________________________________________________________ test_layout_example_1 ___________________________________________________________________________________________\r\n\r\nlayout = <tests.test_layout_mixin.Layout object at 0x7f4354d2c550>\r\n\r\n    def test_layout_example_1(layout):\r\n        layout.layout = ['title|8']\r\n>       layout = layout.get_layout()\r\n\r\ntests/test_layout_mixin.py:28: \r\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _\r\narctic/mixins.py:88: in get_layout\r\n    self._get_fields()\r\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _\r\n\r\nself = <tests.test_layout_mixin.Layout object at 0x7f4354d2c550>\r\n\r\n    def _get_fields(self):\r\n>       self._fields = [field for field in self.get_form().fields]\r\nE       AttributeError: 'dict' object has no attribute 'fields'\r\n\r\narctic/mixins.py:117: AttributeError\r\n___________________________________________________________________________________________ test_layout_example_2 ___________________________________________________________________________________________\r\n\r\nlayout = <tests.test_layout_mixin.Layout object at 0x7f4354b63d50>\r\n\r\n    def test_layout_example_2(layout):\r\n        layout.layout = [['title|3', 'title', 'title']]\r\n>       layout = layout.get_layout()\r\n\r\ntests/test_layout_mixin.py:39: \r\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _\r\narctic/mixins.py:88: in get_layout\r\n    self._get_fields()\r\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _\r\n\r\nself = <tests.test_layout_mixin.Layout object at 0x7f4354b63d50>\r\n\r\n    def _get_fields(self):\r\n>       self._fields = [field for field in self.get_form().fields]\r\nE       AttributeError: 'dict' object has no attribute 'fields'\r\n\r\narctic/mixins.py:117: AttributeError\r\n__________________________________________________________________________________________ test_layout_example_3a ___________________________________________________________________________________________\r\n\r\nlayout = <tests.test_layout_mixin.Layout object at 0x7f4354b63590>\r\n\r\n    def test_layout_example_3a(layout):\r\n        layout.layout = [['title|3', 'title', 'title', 'category', 'category']]\r\n>       layout = layout.get_layout()\r\n\r\ntests/test_layout_mixin.py:54: \r\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _\r\narctic/mixins.py:88: in get_layout\r\n    self._get_fields()\r\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _\r\n\r\nself = <tests.test_layout_mixin.Layout object at 0x7f4354b63590>\r\n\r\n    def _get_fields(self):\r\n>       self._fields = [field for field in self.get_form().fields]\r\nE       AttributeError: 'dict' object has no attribute 'fields'\r\n\r\narctic/mixins.py:117: AttributeError\r\n__________________________________________________________________________________________ test_layout_example_3b ___________________________________________________________________________________________\r\n\r\nlayout = <tests.test_layout_mixin.Layout object at 0x7f4354e6be10>\r\n\r\n    def test_layout_example_3b(layout):\r\n        layout.layout = ['title|3', 'title', 'title', ['category', 'category']]\r\n>       layout = layout.get_layout()\r\n\r\ntests/test_layout_mixin.py:73: \r\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _\r\narctic/mixins.py:88: in get_layout\r\n    self._get_fields()\r\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _\r\n\r\nself = <tests.test_layout_mixin.Layout object at 0x7f4354e6be10>\r\n\r\n    def _get_fields(self):\r\n>       self._fields = [field for field in self.get_form().fields]\r\nE       AttributeError: 'dict' object has no attribute 'fields'\r\n\r\narctic/mixins.py:117: AttributeError\r\n___________________________________________________________________________________________ test_layout_example_4 ___________________________________________________________________________________________\r\n\r\nlayout = <tests.test_layout_mixin.Layout object at 0x7f4354a82790>\r\n\r\n    def test_layout_example_4(layout):\r\n        layout.layout = OrderedDict([('-fieldset',\r\n                                      ['title',\r\n                                       'title',\r\n                                       ['category', 'updated_at|4']]),\r\n                                    ('fieldset2|test description',\r\n                                     [['title|7', 'category']]),\r\n                                    ('fieldset3',\r\n                                     ['published'])])\r\n>       layout = layout.get_layout()\r\n\r\ntests/test_layout_mixin.py:99: \r\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _\r\narctic/mixins.py:88: in get_layout\r\n    self._get_fields()\r\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _\r\n\r\nself = <tests.test_layout_mixin.Layout object at 0x7f4354a82790>\r\n\r\n    def _get_fields(self):\r\n>       self._fields = [field for field in self.get_form().fields]\r\nE       AttributeError: 'dict' object has no attribute 'fields'\r\n\r\narctic/mixins.py:117: AttributeError\r\n==================================================================================== 5 failed, 16 passed in 2.94 seconds ==================================================================================\r\n```"}}
{"actor":{"display_login":"mmarcos"}}