@@ -539,42 +539,3 @@ def test_path_returns_none_when_option_not_request_path() -> None:
539539 )
540540 result = paginator .path (next_page_token )
541541 assert result is None
542-
543-
544- def test_path_with_additional_interpolation_context () -> None :
545- page_token_option = RequestPath (parameters = {})
546- paginator = DefaultPaginator (
547- pagination_strategy = Mock (),
548- config = {},
549- url_base = "https://api.domain.com/{{ stream_slice['campaign_id'] }}" ,
550- parameters = {},
551- page_token_option = page_token_option ,
552- )
553- # define stream_state here
554- stream_state = {"state" : "state_value" }
555- # define stream_slice here
556- stream_slice = StreamSlice (
557- partition = {
558- "campaign_id" : "123_abcd" ,
559- },
560- cursor_slice = {
561- "start" : "A" ,
562- "end" : "B" ,
563- },
564- extra_fields = {
565- "extra_field_A" : "value_A" ,
566- "extra_field_B" : "value_B" ,
567- },
568- )
569- # define next_page_token here
570- next_page_token = {
571- "next_page_token" : "https://api.domain.com/123_abcd/some_next_page_token_here"
572- }
573-
574- expected_after_interpolation = "/some_next_page_token_here"
575-
576- assert expected_after_interpolation == paginator .path (
577- next_page_token = next_page_token ,
578- stream_state = stream_state ,
579- stream_slice = stream_slice ,
580- )
0 commit comments