diff --git a/static/js/src/advantage/distributor/utils/FormContext.tsx b/static/js/src/advantage/distributor/utils/FormContext.tsx index 24893ae5c56..0e2bd098576 100644 --- a/static/js/src/advantage/distributor/utils/FormContext.tsx +++ b/static/js/src/advantage/distributor/utils/FormContext.tsx @@ -14,7 +14,6 @@ import { getPreDuration, TechnicalUserContact, ProductListings, - Metadata, DISTRIBUTOR_SELECTOR_KEYS, } from "./utils"; import { Offer } from "advantage/offers/types"; diff --git a/static/js/src/advantage/subscribe/checkout/utils/test/Mocks.ts b/static/js/src/advantage/subscribe/checkout/utils/test/Mocks.ts index c5b6d4f9421..894c8786836 100644 --- a/static/js/src/advantage/subscribe/checkout/utils/test/Mocks.ts +++ b/static/js/src/advantage/subscribe/checkout/utils/test/Mocks.ts @@ -163,5 +163,5 @@ export const distributorProduct: ChannelProduct = { productID: "uai-essential-desktop", productName: "Ubuntu Pro Desktop", marketplace: UserSubscriptionMarketplace.CanonicalProChannel, - version: "1", + exclusion_group: "", }; diff --git a/tests/shop/advantage/fixtures/channel-offer.json b/tests/shop/advantage/fixtures/channel-offer.json index 1f6b221f32f..ef6d6b4f6a6 100644 --- a/tests/shop/advantage/fixtures/channel-offer.json +++ b/tests/shop/advantage/fixtures/channel-offer.json @@ -29,6 +29,7 @@ "value": 2 } ], + "exclusion_group":"", "lastModified": "0001-01-01T00:00:00Z", "marketplace": "canonical-pro-channel", "productListings": [ diff --git a/tests/shop/advantage/test_parsers.py b/tests/shop/advantage/test_parsers.py index 7ef5a042603..636b4a75598 100644 --- a/tests/shop/advantage/test_parsers.py +++ b/tests/shop/advantage/test_parsers.py @@ -620,6 +620,7 @@ def test_parse_offer(self): allowance=5, ), ], + exclusion_group="", ) self.assertFalse(expectation.check_is_channel_offer()) @@ -653,6 +654,7 @@ def test_parse_offers(self): allowance=5, ), ], + exclusion_group="", ) ] self.assertFalse(expectation[0].check_is_channel_offer()) @@ -693,6 +695,7 @@ def test_parse_channel_offer(self): allowance=2, ), ], + exclusion_group="", ) self.maxDiff = None self.assertTrue(expectation.check_is_channel_offer()) @@ -734,6 +737,7 @@ def test_parse_channel_offers(self): allowance=2, ), ], + exclusion_group="", ) ] self.maxDiff = None