Make the tests flake8 valid and enforce it in tox

Signed-off-by: Pierre-Yves Chibon <pingou@pingoured.fr>
This commit is contained in:
Pierre-Yves Chibon 2020-06-26 15:45:09 +02:00 committed by pingou
parent 08a76aefab
commit 7af467ef1d
5 changed files with 39 additions and 38 deletions

View file

@ -5,12 +5,12 @@ import fedora_messaging.api
class TestDebugToddler:
def test_accepts_topic(self):
assert toddlers.plugins.debug.DebugToddler.accepts_topic("foo.bar") == True
assert toddlers.plugins.debug.DebugToddler.accepts_topic("foo.bar")
def test_process(self):
msg = fedora_messaging.api.Message()
msg.id = 123
msg.topic = "toddlers.test.topic"
assert (
toddlers.plugins.debug.DebugToddler.process(config={}, message=msg) == None
toddlers.plugins.debug.DebugToddler.process(config={}, message=msg) is None
)