fix: the Premium SKUs are the DTFIMP.TXP family
All checks were successful
Build and deploy / Validate source (push) Successful in 5s
Build and deploy / Integration suite on a real stack (push) Successful in 5m26s
Build and deploy / Secret scan and release gate (push) Successful in 9s
Build and deploy / Publish images (push) Successful in 1m52s

Marcus, 2026-11-11: DTFIMP.TXP.100CM per metre and DTFIMP.TXP.0010CM to
0090CM per 10 cm, like the Têxtil family, not a single DTFP.TX.100CM.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
Cauê Faleiros
2026-11-11 11:08:51 -03:00
parent d044da1a5e
commit e657551e66
2 changed files with 4 additions and 4 deletions

View File

@@ -795,9 +795,9 @@ class DefaultSkuTests(unittest.TestCase):
self.assertEqual(tiny.mode_codes('file'), tiny.sku_codes('DTFIMP.TX'))
self.assertEqual(tiny.mode_codes('avulsa'), tiny.sku_codes('DTFIMP.TX'))
self.assertEqual(tiny.mode_codes('uv'), ['DTFIMP.UV.1MT', 'DTFIMP.UV.010CM'])
# Premium's own catalogue: DTFP.TX.100CM per metre (front 3).
self.assertEqual(tiny.mode_codes('premium'), tiny.sku_codes('DTFP.TX'))
self.assertIn('DTFP.TX.100CM', tiny.mode_codes('premium'))
# Premium's own catalogue: DTFIMP.TXP.100CM per metre and DTFIMP.TXP.0010CM to 0090CM (Marcus, 2026-11-11).
self.assertEqual(tiny.mode_codes('premium'), tiny.sku_codes('DTFIMP.TXP'))
self.assertIn('DTFIMP.TXP.0010CM', tiny.mode_codes('premium'))
self.assertEqual(tiny.required_settings(), ['TINY_CLIENT_ID', 'TINY_CLIENT_SECRET', 'TINY_REDIRECT_URI'])
with mock.patch.dict(os.environ, {'TINY_SKU10_UV_FOLHA': 'UV.X'}):
self.assertEqual(tiny.mode_codes('uvfile'), ['UV.X'])