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

aiidateam / aiida_core / 5430 / 7
70%
develop: 74%

Build:
Build:
LAST BUILD BRANCH: fix_3032_doc_working_importexport
DEFAULT BRANCH: develop
Ran 05 Mar 2019 07:48AM UTC
Files 398
Run time 1min
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

05 Mar 2019 07:25AM UTC coverage: 64.153% (-0.04%) from 64.194%
TEST_AIIDA_BACKEND=sqlalchemy TEST_TYPE="tests"

push

travis-ci

sphuber
Importing `metadata` for `Log`-entries properly. (#2486)

The test tries to test the case in issue #2448,
where a specific Node has a few Log messages.
Then one wants to import a file that has more Log messages,
pertaining to the exact same Node.
The test checks that all Log messages are imported according
to their UUID.

Added ex-/import test: `test_reimport_of_logs_for_single_node`
Added simple test: `test_export_of_imported_logs`.

The test checks if one can re-export imported Logs.

Correct import of Logs into sqla from django.

Check a Log's metadata is JSON serializable upon construction.

Add test of Logs to check correct metadata format.

Add type check of metadata when constructing new Log.

Make sure uuid is a string when retrieving it for comparisons,
during import with SQLA.
This was already the case for import with django.
This is crucial, since Log.uuid returns a UUID() type.
To make a proper comparison and ensure we do not try to insert an existing Log,
this MUST be converted to a string, i.e. str(UUID())

Tests for importing existing comments.

Added `comment_mode` to import, which may be:
 - `'newest'`: Will keep the Comment with most recent mtime.
 - `'overwrite'`: Will overwrite existing Comments with the ones from the import file.

Added `delete_many` method to comments.
Acts within a session for SQLA.

Minor fixes to import of extras.

Changed default `extras_mode_new` from `'ignore'` to `'import'` in `import_data_sqla`.
This is to make it the same as for `import_data_dj`.
Furthermore, `'ignore'` was not a valid value.

Update docstrings of import_data* functions

Check `mtime` is the same before and after export/import.
Both for Node and Comment.

Centralized import check of Comments in `_merge_comment` function.
It will update existing Comments if needed, NOT delete entries.

Updated `delete_many` method to accept filters.
Both for Logs and Comments and both for django and SQLA.... (continued)

21930 of 34184 relevant lines covered (64.15%)

0.64 hits per line

Source Files on job 5430.7 (TEST_AIIDA_BACKEND=sqlalchemy TEST_TYPE="tests")
  • Tree
  • List 0
  • Changed 15
  • Source Changed 14
  • Coverage Changed 14
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 1219
  • Travis Job 5430.7
  • d39007d0 on github
  • Prev Job for TEST_AIIDA_BACKEND=sqlalchemy TEST_TYPE="tests" on provenance_redesign (#5428.7)
  • Next Job for TEST_AIIDA_BACKEND=sqlalchemy TEST_TYPE="tests" on provenance_redesign (#5434.7)
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