BERT Phoenix v1.1.0 PhoenixBert.ConnTest View Source
Conveniences for testing BERT endpoints.
Link to this section Summary
Functions
Asserts the given status code, that we have an BERT response and returns the decoded BERT response if one was set or sent
Link to this section Functions
Link to this function
bert_response(conn, status)
View Source
bert_response(Conn.t, status :: integer | atom) :: map | no_return
Asserts the given status code, that we have an BERT response and returns the decoded BERT response if one was set or sent.
Examples
body = bert_response(conn, 200)
assert "can't be blank" in body[:errors]