Coverage for benefits/enrollment_littlepay/migrations/0001_initial.py: 100%
7 statements
« prev ^ index » next coverage.py v7.8.0, created at 2025-05-14 01:41 +0000
« prev ^ index » next coverage.py v7.8.0, created at 2025-05-14 01:41 +0000
1# Generated by Django 5.1.7 on 2025-05-05 19:07
3import benefits.core.models.common
4import benefits.secrets
5from django.db import migrations, models
8class Migration(migrations.Migration):
10 initial = True
12 dependencies = []
14 operations = [
15 migrations.CreateModel(
16 name="LittlepayConfig",
17 fields=[
18 ("id", models.AutoField(primary_key=True, serialize=False)),
19 (
20 "environment",
21 models.TextField(
22 choices=[("qa", "QA"), ("prod", "Production")],
23 help_text="A label to indicate which environment this configuration is for.",
24 ),
25 ),
26 (
27 "agency_slug",
28 models.SlugField(
29 choices=[("cst", "cst"), ("mst", "mst"), ("nevco", "nevco"), ("sacrt", "sacrt"), ("sbmtd", "sbmtd")],
30 help_text="A label to indicate which agency this configuration is for. Note: the field "
31 "that controls which configuration an agency actually uses is on the TransitAgency model.",
32 ),
33 ),
34 (
35 "audience",
36 models.TextField(
37 blank=True,
38 default="",
39 help_text="This agency's audience value used to access the TransitProcessor's API.",
40 ),
41 ),
42 (
43 "client_id",
44 models.TextField(
45 blank=True,
46 default="",
47 help_text="This agency's client_id value used to access the TransitProcessor's API.",
48 ),
49 ),
50 (
51 "client_secret_name",
52 benefits.core.models.common.SecretNameField(
53 blank=True,
54 default="",
55 help_text="The name of the secret containing this agency's client_secret value used to access "
56 "the TransitProcessor's API.",
57 max_length=127,
58 validators=[benefits.secrets.SecretNameValidator()],
59 ),
60 ),
61 ],
62 ),
63 ]