From 16ddbb5b4ee76ab1295781b1ab08b20fe333de5f Mon Sep 17 00:00:00 2001 From: Barrett Ruth Date: Sun, 21 Sep 2025 15:12:36 -0400 Subject: [PATCH] fix(test): names are plainly formatted now --- tests/scrapers/test_atcoder.py | 4 ++-- tests/scrapers/test_codeforces.py | 8 +++++--- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/tests/scrapers/test_atcoder.py b/tests/scrapers/test_atcoder.py index a2a88e5..dcde406 100644 --- a/tests/scrapers/test_atcoder.py +++ b/tests/scrapers/test_atcoder.py @@ -101,12 +101,12 @@ def test_scrape_contests_success(mocker): assert result[0] == ContestSummary( id="abc350", name="AtCoder Beginner Contest 350", - display_name="Beginner Contest 350 (ABC)", + display_name="AtCoder Beginner Contest 350", ) assert result[1] == ContestSummary( id="arc170", name="AtCoder Regular Contest 170", - display_name="Regular Contest 170 (ARC)", + display_name="AtCoder Regular Contest 170", ) diff --git a/tests/scrapers/test_codeforces.py b/tests/scrapers/test_codeforces.py index b95a489..14b263c 100644 --- a/tests/scrapers/test_codeforces.py +++ b/tests/scrapers/test_codeforces.py @@ -77,15 +77,17 @@ def test_scrape_contests_success(mocker): assert result[0] == ContestSummary( id="1951", name="Educational Codeforces Round 168 (Rated for Div. 2)", - display_name="Educational Round 168", + display_name="Educational Codeforces Round 168 (Rated for Div. 2)", ) assert result[1] == ContestSummary( id="1950", name="Codeforces Round 936 (Div. 2)", - display_name="Round 936 (Div. 2)", + display_name="Codeforces Round 936 (Div. 2)", ) assert result[2] == ContestSummary( - id="1949", name="Codeforces Global Round 26", display_name="Global Round 26" + id="1949", + name="Codeforces Global Round 26", + display_name="Codeforces Global Round 26", )