def test_update_money(load_json_mock): load_json_mock.side_effect = fake_loader new_money = MONEY * 3 party_info = PartyInfo(PATH) party_info.update_money(new_money) assert party_info.money() == str(new_money) assert MAIN_DATA['Money'] == new_money
def test_money(load_json_mock): load_json_mock.side_effect = fake_loader party_info = PartyInfo(PATH) assert party_info.money() == str(MONEY)