• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

AASHE / python-membersuite-api-client / 88 / 2
78%
master: 78%

Build:
DEFAULT BRANCH: master
Ran 11 Feb 2017 03:17AM UTC
Files 24
Run time 1s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

11 Feb 2017 03:14AM UTC coverage: 92.65% (-2.8%) from 95.433%
88.2

push

travis-ci

web-flow
Merge pull request #17 from AASHE/msql-shell

Misc improvements on a branch named for a feature that got deleted
# Improved
## exceptions.py
## security/models.py
# New
## membersuite_api_client.models.MemberSuiteObject.  A base MemberSuite object for PortalUser and Individual.
### Takes `membersuite_object_data` as argument.
This object data is the Zeep'ed XML representation of a concrete type of MemberSuiteObject, like PortalUser or Individual.
### Takes care of converting data to a `fields` dictionary.
Hangs this dictionary, named `fields`, on self.
### Sets self.id and self.extra_data.
## membersuite_object_factory() in utils.py
Takes `membersuite_object_data` as input, returns a MemberSuiteObject.
If factory "knows" about the type of MemberSuiteObject, that specific type of MSO is returned.  Otherwise, a generic MemberSuiteObject is returned.  Now it only knows of PortalUser and Individual.
Usage:
```python
import utils

membersuite_object_data = self.get_login_to_portal_response()["PortalUser"]
# Or something similar, probably more complicated, a list of string indices
# into the MemberSuite API response.

portal_user = utils.membersuite_object_factory(membersuite_object_data)

print(portal_user.get_username())
```
Maybe a factory is overkill, since you can make a MemberSuiteObject by simply constructing it with the appropriate Zeep object, e.g., `PortalUser(membersuite_object_data)`.

416 of 449 relevant lines covered (92.65%)

0.93 hits per line

Source Files on job 88.2
  • Tree
  • List 0
  • Changed 4
  • Source Changed 4
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 88
  • Travis Job 88.2
  • 52cb2936 on github
  • Prev Job for on master (#83.2)
  • Next Job for on master (#94.1)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc