# 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
    }

    with pytest.raises(
        SchemaParseException,
        match="decimal scale must be less than or equal to",
    ):
        parse_schema(schema)


def test_decimal_fixed_accommodates_precision():
    """https://github.com/fastavro/fastavro/issues/457"""
    schema = {
        "type": "record",
        "name": "test_scale_is_an_int",
        "fields": [
            {
                "name": "field",
                "type": {
                    "name": "fixed_decimal",
                    "logicalType": "decimal",
                    "precision": 10,
                    "scale": 2,
                    "type": "fixed",
                    "size": 2,
                },
            }
        ],
    }

    with pytest.raises(

# 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

    }

    with pytest.raises(
        SchemaParseException,
        match="decimal scale must be less than or equal to",
    ):
        parse_schema(schema)


def test_decimal_fixed_accommodates_precision():
    """https://github.com/fastavro/fastavro/issues/457"""
    schema = {
        "type": "record",
        "name": "test_scale_is_an_int",
        "fields": [
            {
                "name": "field",
                "type": {
                    "name": "fixed_decimal",
                    "logicalType": "decimal",
                    "precision": 10,
                    "scale": 2,
                    "type": "fixed",
                    "size": 2,
                },
            }
        ],
    }

    with pytest.raises(

        SchemaParseException,