mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-11-18 03:23:01 +03:00
Reuse constants in media auth tests (#24625)
CI / AMD64 Build (push) Canceled after 0s
CI / AMD64 Smoke Test (push) Canceled after 0s
CI / ARM Build (push) Canceled after 0s
CI / Jetson Jetpack 6 (push) Canceled after 0s
CI / AMD64 Extra Build (push) Canceled after 0s
CI / ARM Extra Build (push) Canceled after 0s
CI / Synaptics Build (push) Canceled after 0s
CI / Assemble and push default build (push) Canceled after 0s
CI / AMD64 Build (push) Canceled after 0s
CI / AMD64 Smoke Test (push) Canceled after 0s
CI / ARM Build (push) Canceled after 0s
CI / Jetson Jetpack 6 (push) Canceled after 0s
CI / AMD64 Extra Build (push) Canceled after 0s
CI / ARM Extra Build (push) Canceled after 0s
CI / Synaptics Build (push) Canceled after 0s
CI / Assemble and push default build (push) Canceled after 0s
This commit is contained in:
@@ -20,6 +20,7 @@ from frigate.api.media_auth import (
|
|||||||
resolve_media_uri,
|
resolve_media_uri,
|
||||||
)
|
)
|
||||||
from frigate.config import FrigateConfig
|
from frigate.config import FrigateConfig
|
||||||
|
from frigate.const import EXPORT_DIR
|
||||||
from frigate.models import Event, Export, Recordings, ReviewSegment
|
from frigate.models import Event, Export, Recordings, ReviewSegment
|
||||||
from frigate.test.const import TEST_DB, TEST_DB_CLEANUPS, TEST_DB_PRAGMAS
|
from frigate.test.const import TEST_DB, TEST_DB_CLEANUPS, TEST_DB_PRAGMAS
|
||||||
|
|
||||||
@@ -245,8 +246,8 @@ class TestExportResolution(unittest.TestCase):
|
|||||||
camera=camera,
|
camera=camera,
|
||||||
name=f"export-{export_id}",
|
name=f"export-{export_id}",
|
||||||
date=int(datetime.datetime.now().timestamp()),
|
date=int(datetime.datetime.now().timestamp()),
|
||||||
video_path=f"/media/frigate/exports/{filename}",
|
video_path=os.path.join(EXPORT_DIR, filename),
|
||||||
thumb_path=f"/media/frigate/exports/{filename}.jpg",
|
thumb_path=os.path.join(EXPORT_DIR, f"{filename}.jpg"),
|
||||||
in_progress=False,
|
in_progress=False,
|
||||||
).execute()
|
).execute()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user