def test__campaigns_with_wrong_token(): client = Client(account_id="wrong_account", access_token="wrong_key", start_date="2019-03-03T10:00") with pytest.raises(FacebookAPIException, match="Error: 190, Invalid OAuth access token"): next( client.read_stream(AirbyteStream(name="campaigns", json_schema={})))
def test__campaigns_with_wrong_token(config_with_wrong_token): client = Client(**config_with_wrong_token) with pytest.raises(FacebookAPIException, match="Error: 190, Invalid OAuth access token"): next(client.read_stream(AirbyteStream(name="campaigns", json_schema={})))