from restpite import RestpiteClient


def test_base_url_is_persisted(
    httpx_mock,
    mock_url,
):
    httpx_mock.add_response(status_code=200)
    client = RestpiteClient(base_url=mock_url)
    assert client.get("foobar").url == f"{mock_url}/foobar"

from restpite import RestpiteClient


def test_base_url_is_persisted(
    httpx_mock,
    mock_url,
):
    httpx_mock.add_response(status_code=200)
    client = RestpiteClient(base_url=mock_url)
    assert client.get("foobar").url == f"{mock_url}/foobar"
