def test_change_container_pass(happi_client: Client, item: str, target: str, request: pytest.FixtureRequest): i = request.getfixturevalue(item) t = request.getfixturevalue(target) kw = happi_client.change_container(i, t) for k in kw: assert i.post()[k] == kw[k]
def test_change_fail_mandatory(happi_client: Client, item2_dev: HappiItem): with pytest.raises(TransferError): happi_client.change_container(item2_dev, OphydItem)
def test_change_container_fail(happi_client: Client, item: str, target: str, request: pytest.FixtureRequest): i = request.getfixturevalue(item) t = request.getfixturevalue(target) with pytest.raises(TransferError): happi_client.change_container(i, t)