Skip to content

Commit 04136a6

Browse files
committed
fix(test): stop hardcoding brand source_urls in integration test
Brand source_urls grow as verification backfills add references (e.g. Wikidata); assert membership instead of exact list equality.
1 parent 0e1500f commit 04136a6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎tests/integration/test_brands.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ def test_get_brand_detail(client: TestClient) -> None:
1717
assert body["slug"] == "samsung"
1818
assert body["country"] == "KR"
1919
assert body["url"] == "/v1/brands/samsung"
20-
assert body["source_urls"] == ["https://www.samsung.com"]
20+
assert "https://www.samsung.com" in body["source_urls"]
2121

2222

2323
def test_unknown_brand_returns_404_envelope(client: TestClient) -> None:

0 commit comments

Comments
 (0)