# Path: fastavro/repository/base.py
# class AbstractSchemaRepository(ABC):
#     @abstractmethod
#     def load(self, name):
#         pass
# 
# Path: fastavro/schema.py
# FINGERPRINT_ALGORITHMS = _schema.FINGERPRINT_ALGORITHMS


from os.path import join, abspath, dirname
from fastavro.repository import AbstractSchemaRepository
from fastavro.schema import (
    SchemaParseException,
    UnknownType,
    parse_schema,
    fullname,
    expand_schema,
)
import pytest
import fastavro
            "fields": [{"name": "sub_field_1", "type": "string"}],
        }
    }

    original_schema = {
        "name": "MasterSchema",
        "namespace": "com.namespace.master",
        "type": "record",
        "fields": [
            {"name": "field_2", "type": "com.namespace.dependencies.Dependency"}
        ],
    }

    expected_expanded_schema_fields = [
        {
            "name": "field_2",
            "type": {
                "name": "Dependency",
                "namespace": "com.namespace.dependencies",
                "type": "record",
                "fields": [{"name": "sub_field_1", "type": "string"}],
            },
        }
    ]

    assert isinstance(original_schema, dict)

    try:
        parsed_schema = parse_schema(original_schema, named_schemas=references)
        assert expected_expanded_schema_fields == expand_schema(parsed_schema)["fields"]

# Path: fastavro/repository/base.py
# class AbstractSchemaRepository(ABC):
#     @abstractmethod
#     def load(self, name):
#         pass
# 
# Path: fastavro/schema.py
# FINGERPRINT_ALGORITHMS = _schema.FINGERPRINT_ALGORITHMS


# Path: tests/test_schema.py
from os.path import join, abspath, dirname
from fastavro.repository import AbstractSchemaRepository
from fastavro.schema import (
    SchemaParseException,
    UnknownType,
    parse_schema,
    fullname,
    expand_schema,
)
import pytest
import fastavro

            "fields": [{"name": "sub_field_1", "type": "string"}],
        }
    }

    original_schema = {
        "name": "MasterSchema",
        "namespace": "com.namespace.master",
        "type": "record",
        "fields": [
            {"name": "field_2", "type": "com.namespace.dependencies.Dependency"}
        ],
    }

    expected_expanded_schema_fields = [
        {
            "name": "field_2",
            "type": {
                "name": "Dependency",
                "namespace": "com.namespace.dependencies",
                "type": "record",
                "fields": [{"name": "sub_field_1", "type": "string"}],
            },
        }
    ]

    assert isinstance(original_schema, dict)

    try:
        parsed_schema = parse_schema(original_schema, named_schemas=references)
        assert expected_expanded_schema_fields == expand_schema(parsed_schema)["fields"]

    except UnknownType: