# Path: rest_framework_json_schema/utils.py
# def parse_include(include: str) -> Dict[str, Dict]:
#     """
#     Parse an include parameter into its constituent paths.
# 
#     It returns a tree of include paths, for instance:
# 
#     a,a.b,a.c.d,e.f,g
#     Returns:
#     {
#         'a': {
#             'b': {},
#             'c', {
#                 'd': {}
#             }
#         },
#         'e': {
#             'f': {}
#         },
#         'g': {}
#     }
#     """
#     result: Dict[str, Dict] = {}
#     split = include.split(",")
#     for path in split:
#         if path:
#             components = path.split(".")
#             level = result
#             for c in components:
#                 if c not in level:
#                     level[c] = {}
#                 level = level[c]
#     return result


from rest_framework_json_schema.utils import parse_include


def test_parse_include_empty() -> None:
    result = parse_include("")
    assert result == {}


def test_parse_include_single() -> None:

# Path: rest_framework_json_schema/utils.py
# def parse_include(include: str) -> Dict[str, Dict]:
#     """
#     Parse an include parameter into its constituent paths.
# 
#     It returns a tree of include paths, for instance:
# 
#     a,a.b,a.c.d,e.f,g
#     Returns:
#     {
#         'a': {
#             'b': {},
#             'c', {
#                 'd': {}
#             }
#         },
#         'e': {
#             'f': {}
#         },
#         'g': {}
#     }
#     """
#     result: Dict[str, Dict] = {}
#     split = include.split(",")
#     for path in split:
#         if path:
#             components = path.split(".")
#             level = result
#             for c in components:
#                 if c not in level:
#                     level[c] = {}
#                 level = level[c]
#     return result


# Path: tests/test_utils.py
from rest_framework_json_schema.utils import parse_include



def test_parse_include_empty() -> None:
    result = parse_include("")
    assert result == {}


def test_parse_include_single() -> None:

    result = parse_include("a")