Make the tests flake8 valid and enforce it in tox
Signed-off-by: Pierre-Yves Chibon <pingou@pingoured.fr>
This commit is contained in:
parent
08a76aefab
commit
7af467ef1d
5 changed files with 39 additions and 38 deletions
|
@ -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
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue