mirror of
https://git.selfprivacy.org/SelfPrivacy/selfprivacy-rest-api.git
synced 2024-11-17 16:09:14 +00:00
fix(services): do not randomly exit the huey immediate mode
This commit is contained in:
parent
0078ed0c3a
commit
d7c75e0aa8
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue