aboutsummaryrefslogtreecommitdiff
path: root/wqflask/tests
AgeCommit message (Collapse)Author
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
2020-09-17Add tests for hmac utilityBonfaceKilz
* wqflask/tests/utility/test_hmac.py: New tests.
2020-09-16Add new tests for "base/trait.py"BonfaceKilz
* wqflask/tests/base/test_trait.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-09-15Fix failing testsBonfaceKilz
* wqflask/tests/base/test_data_set.py: Update failing tests introduced by the change in 301bdd2f4.
2020-08-27Fix failing testsBonfaceKilz
2020-08-26Fix failing tests that use python2-htmlgenBonfaceKilz
* wqflask/tests/wqflask/marker_regression/test_display_mapping_results.py: Fix tests.
2020-08-24Add tests for the HtmlGenWrapper classBonfaceKilz
* wqflask/tests/wqflask/marker_regression/test_display_mapping_results.py: Add new tests
2020-08-24Rename fileBonfaceKilz
* wqflask/tests/wqflask/marker_regression/test_display_mapping_results.py: Rename test_display_marking_results.py to test_display_mapping_results.py
2020-08-24Fix failing testBonfaceKilz
* wqflask/tests/wqflask/api/test_gen_menu.py: Update assertion. Result data introduced in 092212df Signed-off-by: BonfaceKilz <bonfacemunyoki@gmail.com>
2020-08-08Add a basic test for test_display_marking_results.pyBonfaceKilz
* wqflask/tests/wqflask/marker_regression/__init__.py: Add it * wqflask/tests/wqflask/marker_regression/test_display_marking_results.py: Check that PIL colors are being used instead of the deprecated Piddle colors.
2020-08-07Move wqflask/tests/api to wqflask/tests/wqflaskBonfaceKilz
* wqflask/tests(api): Move all the files here to tests/wqflask. The test dir should mirror the actual module structure
2020-08-03Fix some errors generated by running pylintBonfaceKilz
* wqflask/wqflask/api/gen_menu.py: Apply pylint. * wqflask/tests/api/test_gen_menu.py: Apply pylint.
2020-08-03Add extra test for "build_datasets"BonfaceKilz
* wqflask/tests/api/test_gen_menu.py: Add test.
2020-08-03Move variable to setUpBonfaceKilz
* wqflask/tests/api/test_gen_menu.py: Move variable
2020-08-03Add test for "gen_dropdown_json"BonfaceKilz
* wqflask/tests/api/test_gen_menu.py: Add new test
2020-08-03Add tests for "get_datasets"BonfaceKilz
* wqflask/tests/api/test_gen_menu.py: Add new tests
2020-08-03Add tests for "get_types"BonfaceKilz
* wqflask/tests/api/test_gen_menu.py: Add new tests
2020-08-03Add test for "build_types"BonfaceKilz
* wqflask/tests/api/test_gen_menu.py: New test
2020-07-30Add tests for "build_datasets"BonfaceKilz
* wqflask/tests/api/test_gen_menu.py: Add new tests for "build_datasets" function
2020-07-29Add tests for "phenotypes_exist" and "genotypes_exist"BonfaceKilz
* wqflask/tests/api/test_gen_menu.py: Add new tests
2020-07-29Add test for "get_groups"BonfaceKilz
* wqflask/tests/api/test_gen_menu.py: test that "get_groups" uses the correct sql query and returns the correct group data structure.
2020-07-29Add initial gen_menu testBonfaceKilz
* wqflask/tests/api/__init__.py: Add it * wqflask/tests/api/test_gen_menu.py: Add test for get_species
2020-07-27Add unittests for WebqtlCaseDataBonfaceKilz
* wqflask/tests/base/test_webqtl_case_data.py: Add it
2020-07-27Test that non-existent keys in Dataset are set correctlyBonfaceKilz
* wqflask/tests/base/test_data_set.py: Add more tests.
2020-07-27Check that Redis is called correctlyBonfaceKilz
* wqflask/tests/base/test_data_set.py: assert that `set` and `get` are called correctly
2020-07-27Add test case for empty redis instance for DatasetTypeBonfaceKilz
* wqflask/tests/base/test_data_set.py(tests): Check correct results are returned when Redis is empty * wqflask/tests/base/data.py(tests): New file. Adds json test data.
2020-07-27Apply py-lintBonfaceKilz
* wqflask/tests/base/test_data_set.py: Apply pylint
2020-07-24Rename test_numify.py to test_formatting.pyBonfaceKilz
2020-07-24Add unittests for *utility/test_numify*BonfaceKilz
2020-07-24Add more tests for general_objectBonfaceKilz
* wqflask/tests/base/test_general_object.py: test getattr() and `==`
2020-07-24Add more tests for GeneralObjectBonfaceKilz
* wqflask/tests/base/test_general_object.py: test object's magic methods
2020-07-24Rename test_numify.py to test_formatting.pyBonfaceKilz
2020-07-24Add unittests for *base/data_set*BonfaceKilz
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