mock_httr_response: Mocks an httr response

Description Usage Arguments Value Examples

View source: R/mock_httr_response.R

Description

Mocks an httr response

Usage

1
mock_httr_response(status_code, content, type)

Arguments

status_code

integer.

content

list.

type

character. json or text

Value

a response object.

Examples

1
mock_httr_response(200L, list(data = "it works!"), "json")

robertzk/testthatsomemore documentation built on Aug. 15, 2017, 7:45 a.m.