timestamp assertion fixed in test
This commit is contained in:
+9
-1
@@ -1,4 +1,4 @@
|
|||||||
# Chat Log
|
|
||||||
|
|
||||||
### User
|
### User
|
||||||
The release server fails because its curl does not support `--fail-with-body`.
|
The release server fails because its curl does not support `--fail-with-body`.
|
||||||
@@ -1561,3 +1561,11 @@ In the toolbar switch the search and tag filter's location
|
|||||||
|
|
||||||
### Assistant outcome
|
### Assistant outcome
|
||||||
Swapped the toolbar positions of the Search and Tag filter controls while preserving their existing IDs and behavior. The rendered-page regression passed, the template order was verified as Tag, Sort, User, Search, and `git diff --check` passed.
|
Swapped the toolbar positions of the Search and Tag filter controls while preserving their existing IDs and behavior. The rendered-page regression passed, the template order was verified as Tag, Sort, User, Search, and `git diff --check` passed.
|
||||||
|
|
||||||
|
|
||||||
|
### User
|
||||||
|
fix the Mastodon timestamp assertion to expect UTC
|
||||||
|
|
||||||
|
### Assistant outcome
|
||||||
|
Updated the Mastodon posting regression assertion to expect the formatter's explicit `UTC` marker in the `Logged on` timestamp. The targeted test passed with `1 passed, 35 deselected`.
|
||||||
|
# Chat Log
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
258. fix the Mastodon timestamp assertion to expect UTC
|
||||||
# Prompt Log
|
# Prompt Log
|
||||||
|
|
||||||
## 2026-08-24
|
## 2026-08-24
|
||||||
|
|||||||
@@ -899,7 +899,7 @@ def test_link_submission_posts_to_enabled_mastodon_plugin():
|
|||||||
assert received['path'] == '/api/v1/statuses'
|
assert received['path'] == '/api/v1/statuses'
|
||||||
assert received['authorization'] == 'Bearer test-token'
|
assert received['authorization'] == 'Bearer test-token'
|
||||||
assert received['content_type'] == 'application/x-www-form-urlencoded'
|
assert received['content_type'] == 'application/x-www-form-urlencoded'
|
||||||
assert received['body'] == {'status': ['From my #LinkLog:\n\nA useful page\n\nWorth sharing\n\nLogged on 2026 August 29 - 21:10 from: https://example.com/useful\n\n#python #web']}
|
assert received['body'] == {'status': ['From my #LinkLog:\n\nA useful page\n\nWorth sharing\n\nLogged on 2026 August 29 - 21:10 UTC from: https://example.com/useful\n\n#python #web']}
|
||||||
posted_item = next(item for item in client.get('/api/public/feed/alice', headers=headers).json() if item['id'] == response.json()['id'])
|
posted_item = next(item for item in client.get('/api/public/feed/alice', headers=headers).json() if item['id'] == response.json()['id'])
|
||||||
assert posted_item['mastodon_posted'] is True
|
assert posted_item['mastodon_posted'] is True
|
||||||
finally:
|
finally:
|
||||||
|
|||||||
Reference in New Issue
Block a user