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

aiidateam / aiida_core / 4376
69%
develop: 74%

Build:
Build:
LAST BUILD BRANCH: fix_3032_doc_working_importexport
DEFAULT BRANCH: develop
Ran 07 Nov 2018 05:40PM UTC
Jobs 2
Files 393
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
4376

Pull #2113

travis-ci

web-flow
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.
Pull Request #2113: Upgrade the dependency requirement of SqlAlchemy

60 of 60 new or added lines in 9 files covered. (100.0%)

22531 of 36990 relevant lines covered (60.91%)

1.22 hits per line

Jobs
ID Job ID Ran Files Coverage
5 4376.5 (TEST_AIIDA_BACKEND=django TEST_TYPE="tests") 07 Nov 2018 05:40PM UTC 0
60.84
Travis Job 4376.5
6 4376.6 (TEST_AIIDA_BACKEND=django TEST_TYPE="tests") 07 Nov 2018 05:42PM UTC 0
60.84
Travis Job 4376.6
Source Files on build 4376
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #4376
  • Pull Request #2113
  • PR Base - develop (#4374)
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