aboutsummaryrefslogtreecommitdiff
path: root/wqflask/tests/utility
AgeCommit message (Collapse)Author
2020-10-28Add new test for hmac_creation with latin-1 secretBonfaceKilz
* wqflask/tests/utility/test_hmac.py (test_hmac_creation_with_cookie): New test. For this test, use a secret that behaves differently when encoded to either utf-8 or latin-1.
2020-09-26Fix failing tests by replacing mock with unittest.mockBonfaceKilz
* wqflask/tests/base/test_data_set.py (imports): Run: `find . -type f -name "*py" -print0 | xargs -0 sed -i \ "s|import mock|from unittest import mock|g"` * wqflask/tests/base/test_trait.py(imports): Ditto. * wqflask/tests/utility/test_authentication_tools.py(imports): Ditto. * wqflask/tests/utility/test_hmac.py(imports). Ditto. * wqflask/tests/wqflask/api/test_gen_menu.py: Ditto
2020-09-17Merge branch 'testing' into build/python3-migrationBonfaceKilz
2020-09-17Mock "SECRET_HMAC_CODE"BonfaceKilz
* wqflask/tests/utility/test_hmac.py: Mock app.config's "SECRET_HMAC_CODE" value.
2020-09-17Fix errors in testsBonfaceKilz
* wqflask/tests/utility/test_authentication_tools.py test_check_resource_availability_non_default_mask): Mock flask's global 'g' variable properly. * wqflask/tests/base/test_trait.py: Ditto. * wqflask/tests/utility/test_authentication_tools.py: Ditto.
2020-09-17Add tests for hmac utilityBonfaceKilz
* wqflask/tests/utility/test_hmac.py: New tests.
2020-09-16Add tests for "add_new_resource" methodBonfaceKilz
* wqflask/tests/utility/test_authentication_tools.py: Add them.
2020-09-16Add tests for authentication toolsBonfaceKilz
Catches bugs in: - https://github.com/genenetwork/genenetwork2/pull/422/commits/70dbeeb5832711ed5271434e482c18bc7ea095b8 * wqflask/tests/utility/test_authentication_tools.py: New file. Add tests for "check_resource_availability".
2020-07-24Rename test_numify.py to test_formatting.pyBonfaceKilz
2020-07-24Add unittests for *utility/test_numify*BonfaceKilz
2020-07-24Rename test_numify.py to test_formatting.pyBonfaceKilz
2020-07-24Add unittests for *utility/test_numify*BonfaceKilz
2020-07-24Add unittests for *utility/corr_result_helper*BonfaceKilz
2020-07-24Add unittests for *utility/corestats*BonfaceKilz
2020-07-24Test utility methods for chunkingBonfaceKilz
* wqflask/tests/utility/test_chunks.py: New test