Skip to content

Commit

Permalink
Issue #1851. Update test expectations.
Browse files Browse the repository at this point in the history
  • Loading branch information
miketaylr committed Oct 31, 2017
1 parent 1429b85 commit d78324e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_form.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,12 +110,12 @@ def test_get_metadata(self):
self.assertEqual(actual, expected)

def test_build_formdata(self):
"""The data body sent to GitHup API."""
"""The data body sent to GitHub API."""
form_object = {'foo': 'bar'}
actual = form.build_formdata(form_object)

# we just need to test that nothing breaks
# even if the data are empty
expected = {'body': u'<!-- @browser: None -->\n<!-- @ua_header: None -->\n<!-- @reported_with: None -->\n\n**URL**: None\n\n**Browser / Version**: None\n**Operating System**: None\n**Tested Another Browser**: Unknown\n\n**Problem type**: Unknown\n**Description**: None\n**Steps to Reproduce**:\nNone\n\n\n\n_From [webcompat.com](https://webcompat.com/) with \u2764\ufe0f_', 'milestone': 1, 'title': 'None - unknown'} # nopep8
expected = {'body': u'<!-- @browser: None -->\n<!-- @ua_header: None -->\n<!-- @reported_with: None -->\n\n**URL**: None\n\n**Browser / Version**: None\n**Operating System**: None\n**Tested Another Browser**: Unknown\n\n**Problem type**: Unknown\n**Description**: None\n**Steps to Reproduce**:\nNone\n\n\n\n_From [webcompat.com](https://webcompat.com/) with \u2764\ufe0f_', 'title': 'None - unknown'} # nopep8
self.assertIs(type(actual), dict)
self.assertEqual(actual, expected)

0 comments on commit d78324e

Please sign in to comment.