Mercurial > p > roundup > code
diff test/rest_common.py @ 7183:2de72f75f2f8
Production PBKDF rounds back to 2M, test 1k; fix empty_form (python2)
| author | John Rouillard <rouilj@ieee.org> |
|---|---|
| date | Sun, 26 Feb 2023 15:38:49 -0500 |
| parents | 6f09103a6522 |
| children | 886a5c767d7e |
line wrap: on
line diff
--- a/test/rest_common.py Sun Feb 26 13:34:14 2023 -0500 +++ b/test/rest_common.py Sun Feb 26 15:38:49 2023 -0500 @@ -245,6 +245,13 @@ self.dummy_client.db = self.db self.empty_form = cgi.FieldStorage() + # under python2 invoking: + # python2 -m pytest --durations=20 + # loads the form with: + # FieldStorage(None, None, [MiniFieldStorage('--durations', '2')]) + # Invoking it as: python2 -m pytest -v --durations=20 + # results in an empty list. In any case, force it to be empty. + self.empty_form.list = [] self.terse_form = cgi.FieldStorage() self.terse_form.list = [ cgi.MiniFieldStorage('@verbose', '0'),
