Coverage for benefits/enrollment_init/migrations/0001_initial.py: 100%

8 statements  

« prev     ^ index     » next       coverage.py v7.16.2, created at 2026-10-08 19:50 +0000

1# Generated by Django 5.2.17 on 2026-09-04 18:29 

2 

3import django.db.models.deletion 

4from django.db import migrations, models 

5 

6import benefits.core.models.common 

7import benefits.secrets 

8 

9 

10class Migration(migrations.Migration): 

11 

12 initial = True 

13 

14 dependencies = [ 

15 ("core", "0008_alter_enrollmentflow_system_name"), 

16 ] 

17 

18 operations = [ 

19 migrations.CreateModel( 

20 name="InitConfig", 

21 fields=[ 

22 ( 

23 "transitprocessorconfig_ptr", 

24 models.OneToOneField( 

25 auto_created=True, 

26 on_delete=django.db.models.deletion.CASCADE, 

27 parent_link=True, 

28 primary_key=True, 

29 serialize=False, 

30 to="core.transitprocessorconfig", 

31 ), 

32 ), 

33 ( 

34 "tokenization_api_key", 

35 models.CharField(blank=True, default="", help_text="The Collect.js API key used for tokenization."), 

36 ), 

37 ( 

38 "registration_api_base_url", 

39 models.URLField( 

40 blank=True, default="", help_text="The absolute base url of the MOBILEvario API instance." 

41 ), 

42 ), 

43 ( 

44 "registration_api_username", 

45 models.CharField( 

46 blank=True, default="", help_text="The username used to authenticate with MOBILEvario.", max_length=50 

47 ), 

48 ), 

49 ( 

50 "registration_api_password_secret_name", 

51 benefits.core.models.common.SecretNameField( 

52 blank=True, 

53 default="", 

54 help_text="The name of the secret containing the password used to authenticate with MOBILEvario, " 

55 "typically: [agency]-init-registration-api-password", 

56 max_length=127, 

57 validators=[benefits.secrets.SecretNameValidator()], 

58 ), 

59 ), 

60 ], 

61 options={ 

62 "verbose_name": "INIT config", 

63 }, 

64 bases=("core.transitprocessorconfig",), 

65 ), 

66 ]