mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-07-25 20:18:38 +02:00
#1102 - Changed disclose behaviour
This commit is contained in:
parent
4fa5f6d097
commit
67d177dc75
2 changed files with 8 additions and 15 deletions
|
@ -626,15 +626,11 @@ class MockEppLib(TestCase):
|
|||
self, contact: PublicContact, disclose_email=False, createContact=True
|
||||
):
|
||||
DF = common.DiscloseField
|
||||
fields = {DF.FAX, DF.VOICE, DF.ADDR}
|
||||
|
||||
if not disclose_email:
|
||||
fields.add(DF.EMAIL)
|
||||
fields = {DF.EMAIL}
|
||||
|
||||
di = common.Disclose(
|
||||
flag=False,
|
||||
flag=disclose_email,
|
||||
fields=fields,
|
||||
types={DF.ADDR: "loc"},
|
||||
)
|
||||
|
||||
# check docs here looks like we may have more than one address field but
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue