Skip to content

Commit ed61db0

Browse files
authored
Merge pull request #2646 from IFRCGo/feat/eap-create-update-validation
2 parents 9a50add + 2df4bd7 commit ed61db0

9 files changed

Lines changed: 1067 additions & 59 deletions

assets

eap/factories.py

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ class Meta:
8282
readiness_budget = fuzzy.FuzzyInteger(1000, 1000000)
8383
pre_positioning_budget = fuzzy.FuzzyInteger(1000, 1000000)
8484
early_action_budget = fuzzy.FuzzyInteger(1000, 1000000)
85-
people_targeted = fuzzy.FuzzyInteger(100, 100000)
85+
people_targeted = fuzzy.FuzzyInteger(2001, 100000)
8686
seap_lead_timeframe_unit = fuzzy.FuzzyInteger(TimeFrame.MONTHS)
8787
seap_lead_time = fuzzy.FuzzyInteger(1, 12)
8888
operational_timeframe = fuzzy.FuzzyInteger(1, 12)
@@ -94,6 +94,16 @@ class Meta:
9494
)
9595
ifrc_head_of_delegation_name = fuzzy.FuzzyText(length=10, prefix="ifrc-head-")
9696
ifrc_head_of_delegation_email = factory.LazyAttribute(lambda obj: f"{obj.ifrc_head_of_delegation_name.lower()}@example.com")
97+
prioritized_hazard_and_impact = fuzzy.FuzzyText(length=50, prefix="prioritized-hazard")
98+
risks_selected_protocols = fuzzy.FuzzyText(length=50, prefix="risks-selected-")
99+
selected_early_actions = fuzzy.FuzzyText(length=50, prefix="selected-early-")
100+
overall_objective_intervention = fuzzy.FuzzyText(length=20, prefix="overall-objective-")
101+
potential_geographical_high_risk_areas = fuzzy.FuzzyText(length=20, prefix="potential-geographical-")
102+
assisted_through_operation = fuzzy.FuzzyText(length=20, prefix="assisted-through-")
103+
trigger_threshold_justification = fuzzy.FuzzyText(length=50, prefix="trigger-threshold-")
104+
next_step_towards_full_eap = fuzzy.FuzzyText(length=50, prefix="next-step-")
105+
early_action_capability = fuzzy.FuzzyText(length=50, prefix="early-action-")
106+
rcrc_movement_involvement = fuzzy.FuzzyText(length=50, prefix="rcrc-movement-")
97107

98108
@factory.post_generation
99109
def enabling_approaches(self, create, extracted, **kwargs):
@@ -212,7 +222,7 @@ class Meta:
212222
readiness_budget = fuzzy.FuzzyInteger(1000, 1000000)
213223
pre_positioning_budget = fuzzy.FuzzyInteger(1000, 1000000)
214224
early_action_budget = fuzzy.FuzzyInteger(1000, 1000000)
215-
people_targeted = fuzzy.FuzzyInteger(100, 100000)
225+
people_targeted = fuzzy.FuzzyInteger(10001, 10000000)
216226
national_society_contact_name = fuzzy.FuzzyText(length=10, prefix="NS-")
217227
national_society_contact_email = factory.LazyAttribute(lambda obj: f"{obj.national_society_contact_name.lower()}@example.com")
218228
ifrc_delegation_focal_point_name = fuzzy.FuzzyText(length=10, prefix="IFRC-")

0 commit comments

Comments
 (0)