We want to cover our REST API part of the codebase with unit-tests.
In the scope of this task we need to cover code which is working with users in our REST API.
Since our REST API doesn't have registration functionality and doesn't work with cookie-sessions, the following methods are used only in ssr part of the application and we excluded them from coverage via # pragma: no cover:
We want to cover our REST API part of the codebase with unit-tests.
In the scope of this task we need to cover code which is working with users in our REST API.
Since our REST API doesn't have registration functionality and doesn't work with cookie-sessions, the following methods are used only in ssr part of the application and we excluded them from coverage via
# pragma: no cover
:User.set_password()
User.create_user()
User.create_session()
UserSession.delete()
UserSession.get_user_session_by_session_id()