Skip to content

Commit

Permalink
Merge branch 'release/0.1.53'
Browse files Browse the repository at this point in the history
  • Loading branch information
JonathanWillitts committed May 22, 2024
2 parents 212431d + 293fad0 commit ffb46f9
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 2 deletions.
6 changes: 6 additions & 0 deletions CHANGES
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
Changes
+++++++

0.1.53
------
- update to Subject Screening form validation to allow screening
age < 12 with consent, though as ineligible (#638-8)
- bump to effect-form-validators 0.1.43

0.1.52
------
- updates to Subject Screening form (#638, #802)
Expand Down
12 changes: 11 additions & 1 deletion effect_screening/tests/tests/test_eligibility.py
Original file line number Diff line number Diff line change
Expand Up @@ -665,7 +665,12 @@ def test_age(self):
**self.exclusion_criteria,
**self.get_basic_opts(),
)
opts.update(age_in_years=2)
opts.update(age_in_years=-1)
form = SubjectScreeningForm(data=opts)
form.is_valid()
self.assertIn("age_in_years", form._errors)

opts.update(age_in_years=120)
form = SubjectScreeningForm(data=opts)
form.is_valid()
self.assertIn("age_in_years", form._errors)
Expand All @@ -675,6 +680,11 @@ def test_age(self):
form.is_valid()
self.assertNotIn("age_in_years", form._errors)

opts.update(age_in_years=12, parent_guardian_consent=YES)
form = SubjectScreeningForm(data=opts)
form.is_valid()
self.assertNotIn("age_in_years", form._errors)

def test_cm_in_csf(self):
opts = dict(
**self.inclusion_criteria,
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ install_requires =
edc-csf==0.3.6
edc-microbiology==0.3.10
beautifulsoup4
effect-form-validators==0.1.42
effect-form-validators==0.1.43

[options.packages.find]
exclude =
Expand Down

0 comments on commit ffb46f9

Please sign in to comment.