Age | Commit message (Collapse) | Author |
|
* 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".
|
|
github.com:BonfaceKilz/genenetwork2 into build/python3-migration
|
|
* 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.
|
|
* 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
|
|
* wqflask/tests/base/test_trait.py: Remove decode function call which
is no longer supported in python3.
|
|
|
|
* wqflask/tests/base/test_trait.py: In python2 it's necessary to
decode the utf-8 string.
|
|
* 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.
|
|
|
|
* wqflask/tests/base/test_trait.py: New tests.
|
|
* wqflask/tests/base/test_data_set.py: Update failing tests introduced
by the change in 301bdd2f4.
|
|
|
|
* wqflask/tests/base/test_webqtl_case_data.py: Add it
|
|
* wqflask/tests/base/test_data_set.py: Add more tests.
|
|
* wqflask/tests/base/test_data_set.py: assert that `set` and `get` are called
correctly
|
|
* 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.
|
|
* wqflask/tests/base/test_data_set.py: Apply pylint
|
|
* wqflask/tests/base/test_general_object.py: test getattr() and `==`
|
|
* wqflask/tests/base/test_general_object.py: test object's magic methods
|
|
|
|
* test/unittest/: Move to wqflask/tests/
|