aboutsummaryrefslogtreecommitdiff
path: root/wqflask/tests/unit/utility
AgeCommit message (Collapse)Author
2022-10-28Refactor: Pass user id to `check_resource_availability`Frederick Muriuki Muriithi
* Pass the user_id for the current user to the `check_resource_availability` function as an argument, rather than using the global `g.user_session.user_id` value.
2021-04-30autopep8: Fix E301,E302,E303,E304,E305,E306BonfaceKilz
2021-03-16Fixed test_check_resource_availability_of_super_user to account for user_id ↵zsloan
being returned as bytes instead of a str
2021-02-19Fixed TestCheckResourceAvailability to make it work after realizing that ↵zsloan
Redis.smembers apparently returns values as bytes
2021-02-19Patched utility.authentication_tools.g as TestUserSession because otherwise ↵zsloan
the str.encode failed on the mock.Mock() object, and this also seems consistent with the way it's done in a later method
2021-01-06refactor tests and pep8 formattingAlexanderkabui
2021-01-06add tests for type checkingAlexanderkabui
2020-11-03Remove encoding header for fileBonfaceKilz
In python3 the default encoding is utf-8 so this is redundant.
2020-11-03Separate unittests from integration testsBonfaceKilz