Skip to content

Conversation

@ChrisCurrin
Copy link

See example.py for how to use the module.

Changes made should make the use of the module more intuitive and explanatory.

- API_KEY instead of APP_ID and APP_SECRET
- clean Resources sub-classes
- fix Gadgets
- extra comments
- Person object
- test_gadgets is now a unittest class
- combined listing gadgets and generating a quote for them into single "GadgetsCover" class
- made Quotes more OOP for easier subclassing of different modules
- Policyholder class as an application of class for type and some validation in python
- Resources' call has defaults for sub-classes which can be overridden at call!
- main.py has a 'full' process example for gadgets
ubmodule so imports are all through 'root.insurance'
@c-goosen
Copy link
Contributor

c-goosen commented May 7, 2018

+1 from me. Looks good.

@c-goosen
Copy link
Contributor

c-goosen commented May 7, 2018

@boyan-soubachov
Copy link

Interesting. Abstracting this thing so that when the other APIs come online, we can just add to this repo rather than create new ones?


def test_list_models(self):
result = self.client.quotes.list_models()
assert result

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thoughts on using the unittest module's assertion tools? They tend to be better (IMO) and provide much better error reports when tests fail.

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

Successfully merging this pull request may close these issues.

3 participants