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

AASHE / python-membersuite-api-client / 88
78%

Build:
DEFAULT BRANCH: master
Ran 11 Feb 2017 03:17AM UTC
Jobs 2
Files 24
Run time 5s
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

pending completion
88

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%)

1.85 hits per line

Jobs
ID Job ID Ran Files Coverage
2 88.2 11 Feb 2017 03:17AM UTC 0
92.65
Travis Job 88.2
3 88.3 11 Feb 2017 03:17AM UTC 0
92.65
Travis Job 88.3
Source Files on build 88
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #88
  • 52cb2936 on github
  • Prev Build on master (#83)
  • Next Build on master (#94)
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