Captricity / mocurly

Mocurly is a library that mocks the recurly python client
MIT License
8 stars 6 forks source link

Country not returned #18

Closed ericarnold-granular closed 5 years ago

ericarnold-granular commented 5 years ago

I've wired in mocurly and got everything working great, except when I create a dummy account for testing with full address, the country portion is missing when I query it back. This is my code to create the account:

    address = recurly.Address(
        address1=TEST_ADDR_1,
        address2=TEST_ADDR_2,
        city=TEST_CITY,
        state=TEST_STATE,
        zip=TEST_ZIP,
        country=TEST_COUNTRY,
        phone=TEST_PHONE,
    )

    recurly.Account(
        account_code=TEST_ACCOUNT_CODE,
        email=TEST_EMAIL,
        first_name=TEST_FIRST_NAME,
        last_name=TEST_LAST_NAME,
        address=address,
    ).save()

I verified the data is in there correctly going in, but when I call recurly.Account.all() and dump the data out again, country is missing. We are on version 2.9.3 of Recurly, 0.2.3 of Mocurly.

Thanks

yorinasub17 commented 5 years ago

Opened pull request https://github.com/Captricity/mocurly/pull/19. I am no longer with Captricity so I don't have write access, but hopefully someone will take a look.