Legoktm has uploaded a new change for review. https://gerrit.wikimedia.org/r/175603
Change subject: Add test_channels_yaml.py to validate the channels.yaml file ...................................................................... Add test_channels_yaml.py to validate the channels.yaml file This validates that the file is valid yaml as well as checking that all the regular expressions compile properly. Change-Id: I2af34c5c90cf25a71550487382ab2fff377226fd --- A test_channels_yaml.py M tox.ini 2 files changed, 12 insertions(+), 1 deletion(-) git pull ssh://gerrit.wikimedia.org:29418/labs/tools/wikibugs2 refs/changes/03/175603/1 diff --git a/test_channels_yaml.py b/test_channels_yaml.py new file mode 100755 index 0000000..9b2ef68 --- /dev/null +++ b/test_channels_yaml.py @@ -0,0 +1,7 @@ +#!/usr/bin/env python + +import channelfilter + +chanfilter = channelfilter.ChannelFilter() +# An exception would have been raised if that wasn't the case +print('channels.yaml has valid syntax') diff --git a/tox.ini b/tox.ini index f05cb65..21e3f67 100644 --- a/tox.ini +++ b/tox.ini @@ -7,12 +7,16 @@ skipsdist = True # Environements to execute when invoking 'tox' -envlist = flake8 +envlist = flake8,channels [testenv:flake8] commands = flake8 deps = flake8 +[testenv:channels] +commands = ./test_channels_yaml.py +deps = PyYAML + [flake8] exclude = .tox max_line_length = 120 -- To view, visit https://gerrit.wikimedia.org/r/175603 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I2af34c5c90cf25a71550487382ab2fff377226fd Gerrit-PatchSet: 1 Gerrit-Project: labs/tools/wikibugs2 Gerrit-Branch: master Gerrit-Owner: Legoktm <legoktm.wikipe...@gmail.com> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits