forked from home-assistant/core
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move Microsoft face fixture to integration test (home-assistant#112993)
* Move Microsoft face fixture to integration test * Update tests/components/microsoft_face/test_init.py Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io> * Fix --------- Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
- Loading branch information
Showing
13 changed files
with
112 additions
and
19 deletions.
There are no files selected for viewing
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
12 changes: 12 additions & 0 deletions
12
tests/components/microsoft_face_detect/fixtures/persongroups.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
[ | ||
{ | ||
"personGroupId": "test_group1", | ||
"name": "test group1", | ||
"userData": "test" | ||
}, | ||
{ | ||
"personGroupId": "test_group2", | ||
"name": "test group2", | ||
"userData": "test" | ||
} | ||
] |
21 changes: 21 additions & 0 deletions
21
tests/components/microsoft_face_detect/fixtures/persons.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
[ | ||
{ | ||
"personId": "25985303-c537-4467-b41d-bdb45cd95ca1", | ||
"name": "Ryan", | ||
"userData": "User-provided data attached to the person", | ||
"persistedFaceIds": [ | ||
"015839fb-fbd9-4f79-ace9-7675fc2f1dd9", | ||
"fce92aed-d578-4d2e-8114-068f8af4492e", | ||
"b64d5e15-8257-4af2-b20a-5a750f8940e7" | ||
] | ||
}, | ||
{ | ||
"personId": "2ae4935b-9659-44c3-977f-61fac20d0538", | ||
"name": "David", | ||
"userData": "User-provided data attached to the person", | ||
"persistedFaceIds": [ | ||
"30ea1073-cc9e-4652-b1e3-d08fb7b95315", | ||
"fbd2a038-dbff-452c-8e79-2ee81b1aa84e" | ||
] | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 27 additions & 0 deletions
27
tests/components/microsoft_face_identify/fixtures/detect.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
[ | ||
{ | ||
"faceId": "c5c24a82-6845-4031-9d5d-978df9175426", | ||
"faceRectangle": { | ||
"width": 78, | ||
"height": 78, | ||
"left": 394, | ||
"top": 54 | ||
}, | ||
"faceAttributes": { | ||
"age": 71.0, | ||
"gender": "male", | ||
"smile": 0.88, | ||
"facialHair": { | ||
"mustache": 0.8, | ||
"beard": 0.1, | ||
"sideburns": 0.02 | ||
}, | ||
"glasses": "sunglasses", | ||
"headPose": { | ||
"roll": 2.1, | ||
"yaw": 3, | ||
"pitch": 0 | ||
} | ||
} | ||
} | ||
] |
File renamed without changes.
12 changes: 12 additions & 0 deletions
12
tests/components/microsoft_face_identify/fixtures/persongroups.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
[ | ||
{ | ||
"personGroupId": "test_group1", | ||
"name": "test group1", | ||
"userData": "test" | ||
}, | ||
{ | ||
"personGroupId": "test_group2", | ||
"name": "test group2", | ||
"userData": "test" | ||
} | ||
] |
21 changes: 21 additions & 0 deletions
21
tests/components/microsoft_face_identify/fixtures/persons.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
[ | ||
{ | ||
"personId": "25985303-c537-4467-b41d-bdb45cd95ca1", | ||
"name": "Ryan", | ||
"userData": "User-provided data attached to the person", | ||
"persistedFaceIds": [ | ||
"015839fb-fbd9-4f79-ace9-7675fc2f1dd9", | ||
"fce92aed-d578-4d2e-8114-068f8af4492e", | ||
"b64d5e15-8257-4af2-b20a-5a750f8940e7" | ||
] | ||
}, | ||
{ | ||
"personId": "2ae4935b-9659-44c3-977f-61fac20d0538", | ||
"name": "David", | ||
"userData": "User-provided data attached to the person", | ||
"persistedFaceIds": [ | ||
"30ea1073-cc9e-4652-b1e3-d08fb7b95315", | ||
"fbd2a038-dbff-452c-8e79-2ee81b1aa84e" | ||
] | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters