Skip to content

Commit

Permalink
Issue #2725: Python lint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ksy36 committed Oct 22, 2019
1 parent aa2a47b commit acf0acc
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion tests/unit/test_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -501,10 +501,15 @@ def test_ab_init_active(self):
response.set_cookie.assert_not_called()

def test_get_extra_labels(self):
"""Test extra_label extraction from form object"""
with webcompat.app.test_request_context('/issues/new', method='POST'):
self.assertEqual(get_extra_labels({'extra_labels': '["type-marfeel", "browser-fenix"]'}), ['type-marfeel', 'browser-fenix'])
self.assertEqual(get_extra_labels(
{'extra_labels': '["type-marfeel", "browser-fenix"]'}),
['type-marfeel', 'browser-fenix']
)
self.assertEqual(get_extra_labels({'extra_labels': '[]'}), [])
self.assertEqual(get_extra_labels({}), None)


if __name__ == '__main__':
unittest.main()

0 comments on commit acf0acc

Please sign in to comment.