aboutsummaryrefslogtreecommitdiff
path: root/wqflask/tests
AgeCommit message (Collapse)Author
2020-11-09mock logger in marker_regression/gemma_mapping.pyAlexanderlacuna
2020-11-09add test for run_gemma function in marker_regression/gemma_mapping.pyAlexanderlacuna
2020-11-08add tests for marker_regression/plink_mapping.pyAlexanderlacuna
2020-11-08add tests for marker_regression/gemma_mappingAlexanderlacuna
2020-11-04correct a typoAlexanderlacuna
2020-11-04remove extra whitespaceAlexanderlacuna
2020-11-04remove whitespace in line 119-120Alexanderlacuna
2020-11-04remove whitespaceAlexanderlacuna
2020-11-04remove whitespace and assertIsAlexanderlacuna
2020-11-03remove unnecessary commentsAlexanderlacuna
2020-11-03add pep8 formattingAlexanderlacuna
2020-11-03add tests for the get_categorical_variables functionAlexanderlacuna
2020-11-03switch from assertFalse to assertIsAlexanderlacuna
2020-11-03switch from assertTrue/False to assertIs to make the tests tighterAlexanderlacuna
2020-11-03use assertTrue and assertFalse in while testing booleanAlexanderlacuna
2020-11-02add better formattingAlexanderlacuna
2020-11-02add function docstringAlexanderlacuna
2020-11-02add tests for show trait moduleAlexanderlacuna
2020-10-31remove redundant classesAlexanderlacuna
2020-10-31use descriptive variable namesAlexanderlacuna
2020-10-31Use more descriptive variable and class namesAlexanderlacuna
2020-10-30add test for get_export_metadataAlexanderlacuna
2020-10-29add test for show_traitAlexanderlacuna
2020-10-29Merge branch 'testing' of https://github.com/genenetwork/genenetwork2 into ↵Alexanderlacuna
test-branch
2020-10-29format fileAlexanderlacuna
2020-10-29add test for show_trait/export_trait_dataAlexanderlacuna
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-10-28Add tests for cookie verificationBonfaceKilz
2020-10-27Merge pull request #465 from Alexanderlacuna/test-branchBonfaceKilz
add test for trait_data
2020-10-27switch from single quote to double quoteAlexanderlacuna
2020-10-27address failuresAlexanderlacuna
2020-10-27added changes to fileAlexanderlacuna
2020-10-27modified to use pep8 standardsAlexanderlacuna
2020-10-26modified test fileAlexanderlacuna
2020-10-20Add tests for encoding passwordBonfaceKilz
* wqflask/tests/wqflask/test_user_login.py: New tests.
2020-10-20Add pbkdf2 testsBonfaceKilz
* wqflask/tests/wqflask/test_pbkdf2.py: New tests.
2020-10-09Add test for process_traits from collections.pyBonfaceKilz
* wqflask/tests/wqflask/test_collect.py: Add it.
2020-09-30Fix import in testsBonfaceKilz
2020-09-29Add test for process_traits from collections.pyBonfaceKilz
* wqflask/tests/wqflask/test_collect.py: Add it.
2020-09-28Fix failing testBonfaceKilz
* wqflask/tests/base/test_trait.py: Add app_context to test class, otherwise an error related to working outside the app_context is generated. Adding the app_context is required when mocking "Flask.g".
2020-09-28Merge branch 'build/python3-migration' of ↵BonfaceKilz
github.com:BonfaceKilz/genenetwork2 into build/python3-migration
2020-09-28Update trait testsBonfaceKilz
* wqflask/tests/base/test_trait.py (test_retrieve_trait_info_with_non_empty_lrs): Check trait.LRS_score_repr is set correctly if trait.lrs is None. (test_retrieve_trait_info_with_empty_lrs_field): Check trait.LRS_score_repr and test_trait.LRS_location_repr is set correctly if trait.lrs is None. (test_retrieve_trait_info_with_empty_chr_field): Check test_trait.LRS_score_repr and test_trait.LRS_location_repr is set correctly if trait.locus is None.
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-26Fix failing testsBonfaceKilz
* wqflask/tests/base/test_trait.py: Remove decode function call which is no longer supported in python3.
2020-09-26Merge branch 'testing' into build/python3-migrationBonfaceKilz
2020-09-23Fix failing testsBonfaceKilz
* wqflask/tests/base/test_trait.py: In python2 it's necessary to decode the utf-8 string.
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-17Merge branch 'testing' into build/python3-migrationBonfaceKilz