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

Halibot / halibot / 356 / 1
95%
master: 93%

Build:
Build:
LAST BUILD BRANCH: config-writer
DEFAULT BRANCH: master
Ran 01 Oct 2018 07:21PM UTC
Files 17
Run time 1s
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

01 Oct 2018 07:20PM UTC coverage: 94.536% (-0.2%) from 94.72%
356.1

Pull #113

travis-ci

web-flow
halibot: add optional config, configfile argument to core

With the eventual intent on moving some `main.py` functionality into modules,
it will be useful to reuse some of core's logic for temporary cli use. Thus,
we will need to spin up temporary instances of `Halibot` to load config, load
modules, etc.

This adds an optional keyword `config` to `Halibot`, which sets a config dict
as supplied. By default, this value is empty, as it was previously.

This also adds an optional keyword `configfile` to `Halibot`, to specify an
alternate configuration file to load on `._load_config()`. Therefore, this
method has also been updated to accept an optional parameter `configfile`
parameter of its own, in the event some external code wants to load an
alternate code without running the full start process.

The default config file remains `config.json`. In theory, no changes to
other code is necessary.

**NOTE:** With this change, `config` is no longer a static class variable,
and is now purely an instance variable. This probably shouldn't affect
anything, but multiple `Halibot` objects will no longer have the same
config dict object.
Pull Request #113: halibot: add optional config, configfile argument to core

917 of 970 relevant lines covered (94.54%)

0.95 hits per line

Source Files on job 356.1
  • Tree
  • List 0
  • Changed 2
  • Source Changed 2
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 351
  • Travis Job 356.1
  • 1372832c on github
  • Prev Job for on allow-supplied-config (#347.1)
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