Skip to content

Commit

Permalink
fix test in py35
Browse files Browse the repository at this point in the history
  • Loading branch information
xmendez committed May 28, 2020
1 parent 1303e9c commit d10b41e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def tell(self):
mocked_fun = "builtins.open" if sys.version_info >= (3, 0) else "__builtin__.open"
with mock.patch(mocked_fun, m):
payload_list = list(wfuzz.payload(**{'show_field': True, 'fields': ['r'], 'payloads': [('wfuzzp', {'default': 'mockedfile', 'encoder': None}, None)]}))
self.assertEqual(sorted([res[0].description for res in payload_list]), sorted(['param=1\nparam2=2']))
self.assertEqual(sorted('-'.join([res[0].description for res in payload_list]).split("\n")), sorted(['param=1', 'param2=2']))

m = mock.MagicMock(name='open', spec=open)
m.return_value = mock_saved_session(["url"], None)
Expand Down

0 comments on commit d10b41e

Please sign in to comment.