fix(packaging): declare sleep diary schemas
This commit is contained in:
parent
1096b13939
commit
53f15e1354
2 changed files with 6 additions and 4 deletions
|
|
@ -66,11 +66,12 @@ class DeploymentToolsTest(unittest.TestCase):
|
|||
self.assertEqual(result.returncode, 0, result.stderr)
|
||||
inventory = json.loads((output / "candidate-inventory.json").read_text())
|
||||
self.assertEqual(inventory["product_version"], "0.1.4")
|
||||
self.assertEqual(inventory["desktop_schema"], 28)
|
||||
self.assertEqual(inventory["android_schema"], 25)
|
||||
self.assertEqual(inventory["desktop_schema"], 29)
|
||||
self.assertEqual(inventory["android_schema"], 26)
|
||||
self.assertIn("session-preparations-v2", inventory["protocols"])
|
||||
self.assertIn("programs-v1", inventory["protocols"])
|
||||
self.assertIn("program-executions-v1", inventory["protocols"])
|
||||
self.assertIn("sleep-diary-v1", inventory["protocols"])
|
||||
self.assertTrue((output / "bin/trainlog").is_file())
|
||||
self.assertTrue((output / "bin/trainlog-sync-once").is_file())
|
||||
self.assertTrue((output / "bin/trainlog-syncd").is_file())
|
||||
|
|
|
|||
|
|
@ -105,8 +105,8 @@ def main() -> int:
|
|||
["git", "rev-parse", "HEAD"], cwd=ROOT, text=True
|
||||
).strip(),
|
||||
"product_version": "0.1.4",
|
||||
"desktop_schema": 28,
|
||||
"android_schema": 25,
|
||||
"desktop_schema": 29,
|
||||
"android_schema": 26,
|
||||
"protocols": [
|
||||
"mobile-export-v3",
|
||||
"mobile-history-v4",
|
||||
|
|
@ -119,6 +119,7 @@ def main() -> int:
|
|||
"ai-session-drafts-v2",
|
||||
"programs-v1",
|
||||
"program-executions-v1",
|
||||
"sleep-diary-v1",
|
||||
],
|
||||
"entry_points": [
|
||||
"bin/trainlog",
|
||||
|
|
|
|||
Loading…
Reference in a new issue