def setup(): commontest.setup_test_env() token = userlib.login(test_data.member['username'], test_data.member['password']) userlib.set_context(token) env.context.pgcursor.connection.commit()
def test_login(): assert bool(userlib.login(test_data.member['username'], test_data.member['password'])) == True