Skip to content

Commit

Permalink
Update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
minkyngkm committed Dec 10, 2024
1 parent c72bbb6 commit 1c608fd
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 2 deletions.
1 change: 0 additions & 1 deletion static/js/src/advantage/distributor/utils/FormContext.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ import {
getPreDuration,
TechnicalUserContact,
ProductListings,
Metadata,
DISTRIBUTOR_SELECTOR_KEYS,
} from "./utils";
import { Offer } from "advantage/offers/types";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -163,5 +163,5 @@ export const distributorProduct: ChannelProduct = {
productID: "uai-essential-desktop",
productName: "Ubuntu Pro Desktop",
marketplace: UserSubscriptionMarketplace.CanonicalProChannel,
version: "1",
exclusion_group: "",
};
1 change: 1 addition & 0 deletions tests/shop/advantage/fixtures/channel-offer.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
"value": 2
}
],
"exclusion_group":"",
"lastModified": "0001-01-01T00:00:00Z",
"marketplace": "canonical-pro-channel",
"productListings": [
Expand Down
4 changes: 4 additions & 0 deletions tests/shop/advantage/test_parsers.py
Original file line number Diff line number Diff line change
Expand Up @@ -620,6 +620,7 @@ def test_parse_offer(self):
allowance=5,
),
],
exclusion_group="",
)

self.assertFalse(expectation.check_is_channel_offer())
Expand Down Expand Up @@ -653,6 +654,7 @@ def test_parse_offers(self):
allowance=5,
),
],
exclusion_group="",
)
]
self.assertFalse(expectation[0].check_is_channel_offer())
Expand Down Expand Up @@ -693,6 +695,7 @@ def test_parse_channel_offer(self):
allowance=2,
),
],
exclusion_group="",
)
self.maxDiff = None
self.assertTrue(expectation.check_is_channel_offer())
Expand Down Expand Up @@ -734,6 +737,7 @@ def test_parse_channel_offers(self):
allowance=2,
),
],
exclusion_group="",
)
]
self.maxDiff = None
Expand Down

0 comments on commit 1c608fd

Please sign in to comment.