Unit tests for transition sets user status to ineligible and deomain and application permissions

This commit is contained in:
rachidatecs 2023-08-18 18:52:47 -04:00
parent c98392baac
commit 96ea396da4
No known key found for this signature in database
GPG key ID: 3CEBBFA7325E5525
3 changed files with 77 additions and 1 deletions

View file

@ -610,7 +610,9 @@ class DomainApplication(TimeStampedModel):
"""The applicant is a bad actor, reject with prejudice.
No email As a side effect, but we block the applicant from editing
any existing domains and from submitting new apllications"""
any existing domains/applications and from submitting new aplications.
We do this by setting an ineligible status on the user, which the
permissions classes test against"""
self.creator.block_user()