mirror of
https://github.com/Dispatcharr/Dispatcharr.git
synced 2026-07-22 17:48:09 +00:00
tests: Fix backend test.
This commit is contained in:
parent
172967c2fd
commit
524ee6d479
1 changed files with 5 additions and 3 deletions
|
|
@ -155,10 +155,12 @@ class CoreSettingsGroupCacheTests(TestCase):
|
|||
"""
|
||||
from redis.exceptions import ConnectionError as RedisConnectionError
|
||||
|
||||
CoreSettings.objects.create(
|
||||
CoreSettings.objects.update_or_create(
|
||||
key=STREAM_SETTINGS_KEY,
|
||||
name="Stream Settings",
|
||||
value={"default_user_agent": "ua-from-db"},
|
||||
defaults={
|
||||
"name": "Stream Settings",
|
||||
"value": {"default_user_agent": "ua-from-db"},
|
||||
},
|
||||
)
|
||||
redis_down = RedisConnectionError(
|
||||
"Error 111 connecting to localhost:6379"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue