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

opsdroid / opsdroid / 696 / 2
97%
master: 97%

Build:
DEFAULT BRANCH: master
Ran 23 Oct 2017 08:22AM UTC
Files 19
Run time 0s
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

23 Oct 2017 08:20AM UTC coverage: 96.735% (+0.02%) from 96.719%
TOXENV=py35

push

travis-ci

jacobtomlinson
Handle missing section details in load_modules_from_config (#271)

* Handle missing section details in load_modules_from_config

If the user has a 'databases:' section in their configuration, but nothing
listed as part of it, the opsdroid.loader.load_modules_from_config() would
call _load_modules with the modules parameter set to None, which would cause
a problem when trying to iterate it on line 223.

* Add some failing tests for PR#271

I found that I was getting two different errors with with the
load_modules_from_config() call when the minimal.yaml file was in
different states. Hence I've added a minimal_2.yaml to cover both error
conditions.

* Fix bug where configuration node has no children elements.

If the configuration has elements with no children (such as the "hello"
skill in the tests/configs/minimal.yaml file) then a yaml import gives you
that element as a string, not a dict. This change makes
Loader._load_modules() deal with that sensibly.

* Fix up tests for #271

As part of it's work the load_modules_from_config() file imports modules.
However those modules rely on opsdroid being fully instantiated, and that is
not the case in these unit tests.  So some mocking was necessary to isolate
the test, and only test the successful parsing of the configuration file.

* Minor change to satisfy pylint.

800 of 827 relevant lines covered (96.74%)

0.97 hits per line

Source Files on job 696.2 (TOXENV=py35)
  • Tree
  • List 0
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 696
  • Travis Job 696.2
  • e8b89cc6 on github
  • Prev Job for TOXENV=py35 on master (#688.2)
  • Next Job for TOXENV=py35 on master (#708.2)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc