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

Halibot / halibot / 355
95%
master: 93%

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

push

travis-ci

richteer
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.

917 of 970 relevant lines covered (94.54%)

1.89 hits per line

Jobs
ID Job ID Ran Files Coverage
1 355.1 01 Oct 2018 07:21PM UTC 0
94.54
Travis Job 355.1
2 355.2 01 Oct 2018 07:21PM UTC 0
94.54
Travis Job 355.2
Source Files on build 355
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #355
  • ba150dac on github
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