fix(services): do not randomly exit the huey immediate mode

This commit is contained in:
Houkime 2023-10-20 17:02:43 +00:00
parent 0078ed0c3a
commit d7c75e0aa8

View file

@ -5,6 +5,7 @@ import os
import pytest import pytest
from selfprivacy_api.utils import WriteUserData, ReadUserData from selfprivacy_api.utils import WriteUserData, ReadUserData
from selfprivacy_api.utils.huey import huey
from os import path from os import path
from os import makedirs from os import makedirs
@ -53,6 +54,9 @@ def dummy_service(tmpdir, raw_dummy_service) -> Generator[Service, None, None]:
# register our service # register our service
services.services.append(service) services.services.append(service)
huey.immediate = True
assert huey.immediate is True
assert get_service_by_id(service.get_id()) is not None assert get_service_by_id(service.get_id()) is not None
yield service yield service