• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

mozilla / fx-private-relay / 5a74df92-c598-4a13-b723-2e7458805f16

24 Mar 2025 03:23PM CUT coverage: 85.203% (+0.04%) from 85.167%
5a74df92-c598-4a13-b723-2e7458805f16

Pull #5468

circleci

groovecoder
for MPP-4020: fix(settings): correct env var names for SP3 product keys

The `SUBPLAT3_PHONES_PRODUCT_KEY` and `SUBPLAT3_BUNDLE_PRODUCT_KEY` variables in settings.py were incorrectly assigned from `SUBPLAT3_PREMIUM_PRODUCT_KEY`. This patch fixes the typo so each config line uses the correct environment variable name.

Also adds parametrized tests in `sp3_plans_tests.py` to verify correct behavior of product key usage, including distinctness of keys and proper URL/price generation per plan.

These changes ensure correct config values are loaded and improve test coverage around SP3 plan behavior.
Pull Request #5468: for MPP-4020: fix(settings): correct env var names for SP3 product keys

2452 of 3584 branches covered (68.42%)

Branch coverage included in aggregate %.

42 of 42 new or added lines in 1 file covered. (100.0%)

17217 of 19501 relevant lines covered (88.29%)

9.82 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/frontend/src/components/ReactAriaI18nProvider.tsx
1
import { ReactNode } from "react";
2
import { I18nProvider } from "react-aria";
×
3
import { getLocale } from "../functions/getLocale";
×
4
import { useL10n } from "../hooks/l10n";
×
5

6
/**
7
 * React-aria has some components (e.g. `<DismissButton>`) that include their
8
 * own strings. This component ensures that they use the same locale as the
9
 * rest of the application does.
10
 */
11
export const ReactAriaI18nProvider = (props: { children: ReactNode }) => {
×
12
  const l10n = useL10n();
×
13
  const locale = getLocale(l10n);
×
14

15
  return <I18nProvider locale={locale}>{props.children}</I18nProvider>;
16
};
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc