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

aiidateam / aiida_core / 5452
70%
develop: 74%

Build:
Build:
LAST BUILD BRANCH: fix_3032_doc_working_importexport
DEFAULT BRANCH: develop
Ran 07 Mar 2019 08:41AM UTC
Jobs 3
Files 396
Run time 7min
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
5452

push

travis-ci

web-flow
Allow the definition of `None` as default in process functions (#2582)

It was impossible to define a process function with a keyword argument
that had `None` as default, because the dynamically created ports always
only specified `orm.Data` as valid types. So the validation of the
default value would fail during the spec definition. Here we detect if
`None` is passed as the default in the function signature, in which case
we define the tuple of `orm.Data` and `type(None)` to be a valid type.
Note that we need to use `type(None)` because the port validation later
on will call `isinstance(input, valid_types)` which will not work if one
of the values in `valid_types` is simply `None`.

The `Process._setup_inputs` had to be adjusted to skip values of `None`
because they cannot be linked to obviously but they can now potentially
be passed as inputs to a `Process`.

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

23821 of 34035 relevant lines covered (69.99%)

1.91 hits per line

Jobs
ID Job ID Ran Files Coverage
5 5452.5 (TEST_AIIDA_BACKEND=django TEST_TYPE="tests") 07 Mar 2019 08:41AM UTC 0
63.95
Travis Job 5452.5
7 5452.7 (TEST_AIIDA_BACKEND=sqlalchemy TEST_TYPE="tests") 07 Mar 2019 08:44AM UTC 0
63.75
Travis Job 5452.7
8 5452.8 (TEST_AIIDA_BACKEND=sqlalchemy TEST_TYPE="tests") 07 Mar 2019 08:47AM UTC 0
63.69
Travis Job 5452.8
Source Files on build 5452
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #5452
  • e64a6070 on github
  • Prev Build on provenance_redesign (#5448)
  • Next Build on provenance_redesign (#5454)
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