Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fake.PostalCodeInState does not populate based on state in template #478

Open
dcinzona opened this issue Aug 27, 2021 · 0 comments
Open

Comments

@dcinzona
Copy link

dcinzona commented Aug 27, 2021

Recipe:

- var: snowfakery_locale
  value: en_US
- object: Address__c
  count: 3
  fields:
    __state:
      fake: State
    __stateAbbr:
      fake: StateAbbr
    __zip: 
      fake: PostalcodeInState
    Person_Account1__c:
      reference: Account
    Name: 
      fake: StreetAddress
    City__c: 
      fake: city
    Country__c: US
    State__c: ${{__stateAbbr}}
    Postal_Code__c: '${{__zip}}'
    Zip__c: '${{__zip}}'
    Type__c: Home

Relavent output:

Country__c=US, 
State__c=UT, 
Postal_Code__c=3155

3155 is not in the range for UT
https://github.com/joke2k/faker/blob/a565d46e928dba18938164de2125de1aabc3f825/faker/providers/address/en_US/__init__.py#L281

Looks like it's in the range for NH

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant