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

aiidateam / aiida_core / 4375 / 5
69%
develop: 74%

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

07 Nov 2018 05:25PM UTC coverage: 60.867%. Remained the same
TEST_AIIDA_BACKEND=django TEST_TYPE="tests"

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.

22517 of 36994 relevant lines covered (60.87%)

0.61 hits per line

Source Files on job 4375.5 (TEST_AIIDA_BACKEND=django TEST_TYPE="tests")
  • Tree
  • List 0
  • Changed 123
  • Source Changed 103
  • Coverage Changed 112
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 417
  • Travis Job 4375.5
  • 979d42a8 on github
  • Prev Job for TEST_AIIDA_BACKEND=django TEST_TYPE="tests" on fix_465_upgrade_sqlalchemy (#4221.5)
  • Next Job for TEST_AIIDA_BACKEND=django TEST_TYPE="tests" on fix_465_upgrade_sqlalchemy (#4377.6)
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