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

boto / boto3 / 51
97%
develop: 91%

Build:
Build:
LAST BUILD BRANCH: 1.1.4
DEFAULT BRANCH: develop
Ran 28 Oct 2014 10:56PM UTC
Jobs 4
Files 12
Run time 4min
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
51

push

travis-ci

danielgtaylor
Add implicit reverse references.

This pull request adds support for resources to reference their parents,
for example:

```python
obj = s3.Object('boto3', 'sun.jpg')
print(obj.bucket.name)
```

This works by using the `subResources` feature of the resource JSON
description format. Since `Object` is listed as a child of `Bucket`
in the bucket's sub-resources, and we know the identifier mapping
from and object's `bucket_name` to a bucket's `name`, we can create
the reverse reference just like if an explicit `hasOne` was defined
in the JSON.

Additionally this fixes the SQS resource JSON to no longer explicitly
list the Message hasOne Queue relation, since the Queue has a Message
in its sub-resources.

Adds a test for the resource model as well as modifies the references
test to ensure both normal and reverse references become attributes
on the instantiated resource.

19 of 19 new or added lines in 2 files covered. (100.0%)

525 of 543 relevant lines covered (96.69%)

3.87 hits per line

Uncovered Existing Lines

Lines Coverage ∆ File
3
100.0
boto3/compat.py
Jobs
ID Job ID Ran Files Coverage
2 51.2 28 Oct 2014 10:56PM UTC 0
96.69
Travis Job 51.2
3 51.3 28 Oct 2014 11:00PM UTC 0
96.69
Travis Job 51.3
4 51.4 28 Oct 2014 11:00PM UTC 0
96.69
Travis Job 51.4
5 51.5 28 Oct 2014 10:59PM UTC 0
96.69
Travis Job 51.5
Source Files on build 51
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #51
  • d6c9af9d on github
  • Prev Build on references (#46)
  • Next Build on references (#53)
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