An open source, non-profit web search engine
Update membership perks: Seed Search quotas and Canopy crawling
Claudeb5da7eed3312
diff --git a/mwmbl/membership.py b/mwmbl/membership.pyindex 28c60cc..e08e463 100644--- a/mwmbl/membership.py+++ b/mwmbl/membership.py@@ -23,14 +23,17 @@ TIERS = [TierInfo(tier=MembershipTier.SPROUT,monthly_price_pence=100,- perks=["Access to the members area in Matrix and Discord"],+ perks=[+ "Access to the members area in Matrix and Discord",+ "300 Seed Search queries a month to enhance our index",+ ],),TierInfo(tier=MembershipTier.SAPLING,monthly_price_pence=500,perks=["Everything in Sprout",- "1,000 Active Discovery queries a month to enhance our index",+ "1,500 Seed Search queries a month to enhance our index",],),TierInfo(@@ -38,7 +41,7 @@ TIERS = [monthly_price_pence=2_000,perks=["Everything in Sapling",- "A dedicated crawler, managed for you",+ "1 million pages a month crawled against your username","Your username on the crawler leaderboard",],),diff --git a/test/test_membership.py b/test/test_membership.pyindex 8fe6637..7bd90f3 100644--- a/test/test_membership.py+++ b/test/test_membership.py@@ -113,6 +113,16 @@ def test_list_tiers_is_public_and_ordered(api_client):assert tiers[1]["name"] == "Sapling"+def test_tier_perks_contain_the_phrases_the_front_end_bolds(api_client):+ response = api_client.get("/api/v1/platform/membership/tiers")++ perks_by_tier = {t["tier"]: " ".join(t["perks"]) for t in response.json()}+ assert "300 Seed Search queries" in perks_by_tier["sprout"]+ assert "1,500 Seed Search queries" in perks_by_tier["sapling"]+ assert "1 million pages" in perks_by_tier["canopy"]++@pytest.mark.django_dbdef test_get_membership_not_a_member_returns_404(api_client, user):response = api_client.get("/api/v1/platform/membership", **auth_headers(user))