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

aiidateam / aiida_core / 4375
69%
develop: 74%

Build:
Build:
LAST BUILD BRANCH: fix_3032_doc_working_importexport
DEFAULT BRANCH: develop
Ran 07 Nov 2018 05:25PM UTC
Jobs 2
Files 393
Run time 15min
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
4375

push

travis-ci

sphuber
Wrap `flag_modified` to unwrap `ModelWrapper` instances

The new backend wraps the database model instances in the `ModelWrapper`
utility class, which will take care of timely flushing and updating the
model instance upon changes. Across the code, model instances are passed
to the `flag_modified` functionn of SqlAlchemy that mark a certain key
on an instance as modified. However, sometimes instead of the actual
model instance being passed, the wrapped version is passed. This used to
be ignored for `sqlalchemy==1.0.19` but in `sqlalchemy==1.2.12` to which
we have updated, an `InvalidRequestError` is raised.

To overcome this, we define our own `flag_modified` function that wraps
the one of SqlAlchemy and will unwrap any wrapped instances that are
passed to it.

22531 of 36990 relevant lines covered (60.91%)

1.22 hits per line

Jobs
ID Job ID Ran Files Coverage
5 4375.5 (TEST_AIIDA_BACKEND=django TEST_TYPE="tests") 07 Nov 2018 05:25PM UTC 0
60.87
Travis Job 4375.5
6 4375.6 (TEST_AIIDA_BACKEND=django TEST_TYPE="tests") 07 Nov 2018 05:30PM UTC 0
60.81
Travis Job 4375.6
Source Files on build 4375
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #4375
  • 979d42a8 on github
  • Prev Build on fix_465_upgrade_sqlalchemy (#4221)
  • Next Build on fix_465_upgrade_sqlalchemy (#4377)
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

© 2025 Coveralls, Inc