Skip to content

Commit

Permalink
test: test for missing graphite in config
Browse files Browse the repository at this point in the history
for #72
  • Loading branch information
rickymoorhouse committed Aug 30, 2023
1 parent 10c97ae commit 0b7e06b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test_trawler.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,12 @@ def test_check_nosettings():
assert result.exit_code == 2


def test_check_config_load_nographite():
boaty2 = trawler.Trawler('test-assets/no-graphite.yaml')
assert 'prometheus' in boaty2.config
assert 'graphite' not in boaty2.config


def test_check_config_load():
boaty.load_config('test-assets/config.yaml')
assert 'prometheus' in boaty.config
Expand Down

0 comments on commit 0b7e06b

Please sign in to comment.