Migrate TickTick OAuth and action tasks

This commit is contained in:
2026-04-20 17:06:03 +02:00
parent 179aae264e
commit 982af62f4f
17 changed files with 1114 additions and 15 deletions
+19 -3
View File
@@ -109,7 +109,23 @@ def test_homeassistant_publish_rejects_missing_content(location_client) -> None:
assert "content" not in response.text
def test_homeassistant_publish_returns_not_implemented_for_unknown_target(location_client) -> None:
def test_homeassistant_publish_returns_internal_error_for_unconfigured_ticktick(location_client) -> None:
client, _ = location_client
response = client.post(
"/homeassistant/publish",
json={
"target": "ticktick",
"action": "create_action_task",
"content": "{'action': 'take out trash', 'due_hour': 6}",
},
)
assert response.status_code == 500
assert response.text == "internal server error"
def test_homeassistant_publish_rejects_invalid_ticktick_content(location_client) -> None:
client, _ = location_client
response = client.post(
@@ -121,8 +137,8 @@ def test_homeassistant_publish_returns_not_implemented_for_unknown_target(locati
},
)
assert response.status_code == 500
assert response.text == "internal server error"
assert response.status_code == 400
assert response.text == "bad request"
def test_homeassistant_publish_returns_not_implemented_for_unknown_location_action(