@mock.patch("h.accounts.models.User.get_by_username")
def test_make_staff_sets_staff_to_True_if_False(get_by_username):
    fred = mock.Mock()
    fred.staff = False
    get_by_username.return_value = fred

    accounts.make_staff("fred")

    assert fred.staff is True
Construct a SMALLINTEGER.
dataset/ETHPy150Open hypothesis/h/h/accounts/test/__init___test.py/test_make_staff_sets_staff_to_True_if_False--crossover with--dataset/ETHPy150Open zzzeek/sqlalchemy/lib/sqlalchemy/dialects/mysql/types.py/SMALLINT.__init__