# Path: ipwb/replay.py
# def compile_target_uri(url: str, query_string: bytes) -> str:
#     """Append GET query string to the page path, to get full URI."""
#     if query_string:
#         return f"{url}?{query_string.decode('utf-8')}"
# 
#     else:
#         return url


from ipwb.replay import compile_target_uri


def test_empty_query_string():
    assert compile_target_uri('https://example.com', b'') == (
        'https://example.com'
    )


def test_unempty_query_string():

# Path: ipwb/replay.py
# def compile_target_uri(url: str, query_string: bytes) -> str:
#     """Append GET query string to the page path, to get full URI."""
#     if query_string:
#         return f"{url}?{query_string.decode('utf-8')}"
# 
#     else:
#         return url


# Path: tests/test_compile_target_uri.py
from ipwb.replay import compile_target_uri



def test_empty_query_string():
    assert compile_target_uri('https://example.com', b'') == (
        'https://example.com'
    )


def test_unempty_query_string():

    assert compile_target_uri('https://example.com', b'foo=bar&boo=baz') == (