mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-08-02 17:12:16 +03:00
Ensure sub label is null when submitting an empty string (#16779)
* null sub_label when submitting an empty string * prevent cancel from submitting form * fix test
This commit is contained in:
@@ -275,7 +275,7 @@ class TestHttp(unittest.TestCase):
|
||||
event = client.get(f"/events/{id}").json()
|
||||
assert event
|
||||
assert event["id"] == id
|
||||
assert event["sub_label"] == ""
|
||||
assert event["sub_label"] == None
|
||||
|
||||
def test_sub_label_list(self):
|
||||
app = create_fastapi_app(
|
||||
|
||||
Reference in New Issue
Block a user