Karuha
Karuha copied to clipboard
Error in some tests
Hello, I saw some error in your tests (Python tests for tests.test_data.TestData):
[ERROR] a handler of the event <karuha.event.bot.MetaEvent object at 0x108861750> failed
Traceback (most recent call last):
File "/Karuha/karuha/event/base.py", line 17, in handler_runner
ret = super(Event, event).call_handler(func)
File "/Karuha/karuha/utils/invoker.py", line 122, in call_handler
return handler(*args, **kwargs)
File "/Karuha/karuha/data/cache.py", line 379, in handle_meta
cache_me_subscription(bot_user_id, sub_meta)
File "/Karuha/karuha/data/cache.py", line 336, in cache_me_subscription
sub = Subscription.from_meta(sub_meta)
File "/Karuha/karuha/data/meta.py", line 126, in from_meta
return cls(
File "/Karuha/venv/lib/python3.10/site-packages/pydantic/main.py", line 209, in __init__
validated_self = self.__pydantic_validator__.validate_python(data, self_instance=self)
pydantic_core._pydantic_core.ValidationError: 1 validation error for Subscription
acs
Input should be a valid dictionary or instance of Access [type=model_type, input_value=None, input_type=NoneType]
For further information visit https://errors.pydantic.dev/2.9/v/model_type
And the test errors are here (tests/test_session.py):
In the latest commit.
The test failures are known issues and both issues have been fixed in the development branch.