Rename the product Scrobbled
Display name only: UI, docs, API title, dashboards, hashtag and User-Agent. Identifiers (package, metrics, env vars, SCROBBLER_CONFIG) are unchanged. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
9e4218f11b
commit
65ee13fa65
64 files changed
+130
-130
No files matched your search
@@ -79,18 +79,18 @@ def test_build_content_shape():
|
||||
"My week in music: 312 plays",
|
||||
"Top artists: 1. Radiohead (48) 2. Björk (31) 3. Portishead (22)",
|
||||
"Most played: Reckoner by Radiohead (12 plays)",
|
||||
"#Scrobbler",
|
||||
"#Scrobbled",
|
||||
]
|
||||
assert html.startswith("<p><strong>My week in music: 312 plays</strong></p>")
|
||||
assert "<ol><li>Radiohead" in html
|
||||
assert "<em>Reckoner</em> by Radiohead" in html
|
||||
assert html.endswith("<p>#Scrobbler</p>")
|
||||
assert html.endswith("<p>#Scrobbled</p>")
|
||||
assert "<script" not in html # sanity: nothing unescaped ever reaches the markup
|
||||
|
||||
|
||||
def test_build_content_without_any_plays_this_week():
|
||||
text, html = build_content(0, [], [])
|
||||
assert text == "My week in music: 0 plays\n#Scrobbler"
|
||||
assert text == "My week in music: 0 plays\n#Scrobbled"
|
||||
assert "<ol>" not in html # no top-artists list when there isn't one
|
||||
assert "Most played" not in html
|
||||
|
||||
|
||||
Reference in new issue
Block a user