Florian Ludwig
751b11e3ca
throw exception instance not class and add test
2022-02-04 18:16:21 +01:00
Florian Ludwig
9628a1ce3e
remove deprecated loop parameter from tests
2022-01-11 12:55:04 +01:00
Florian Ludwig
86cec6d2a5
remove hbmqtt plugin namespace compatibility
2021-08-17 17:01:58 +02:00
Stuart Longland
fed6d2c31c
plugins.topic_checking tests: Fix issues identified by flake8
2021-08-17 16:20:27 +02:00
Stuart Longland
bf5279911b
Pass code through `black` formatter
2021-08-17 16:20:27 +02:00
Stuart Longland
29854264e3
broker tests: Change passwords for user[1…3]
...
As pointed out, it's possible to accidentally mix them up if the
passwords are the same. Obviously, the passwords used for these tests
should _NOT_ be used in production.
2021-08-17 16:20:27 +02:00
Stuart Longland
744a6868fe
plugins.topic_checking: De-indent logging checks
...
As pointed out, the `logdog` docs do the checks outside of the context
manager scope, so we should do so as well.
2021-08-17 16:20:27 +02:00
Stuart Longland
2e52b22c2c
plugins.topic_checking tests: Run code formatting tool.
2021-08-17 16:20:27 +02:00
Stuart Longland
0760bd7613
plugins.topic_checking tests: Replace DummyLogger with `logdog` plug-in.
2021-08-17 16:20:27 +02:00
Stuart Longland
73db6a3536
plugins.topic_checking tests: Fix tests broken by Enum change.
2021-08-17 16:20:27 +02:00
Stuart Longland
100ca6e67a
plugins.topic_checking tests: Clean up `assert`/`await` calls
2021-08-17 16:20:27 +02:00
Stuart Longland
b33fb05991
plugins.topic_checking tests: Add tests for enabled=False
2021-08-17 16:20:27 +02:00
Stuart Longland
653b6cd89c
plugins.topic_checking tests: Drop copyright header
2021-08-17 16:20:27 +02:00
Stuart Longland
9efd152c1b
plugins.topic_checking tests: Fix comment statement
2021-08-17 16:20:27 +02:00
Stuart Longland
f30aa9245d
test password file: Add some more users
2021-08-17 16:20:27 +02:00
Stuart Longland
66568122c5
plugin.topic_checking tests: Fix code formatting.
...
Yes, too lazy to hold down shift when hitting the `'` key.
2021-08-17 16:20:27 +02:00
Stuart Longland
18cf5cdd1e
plugins.topic_checking: Add remaining tests.
2021-08-17 16:20:27 +02:00
Stuart Longland
8daf173a75
plugins.topic_checking: Test topic_ac static method
2021-08-17 16:20:27 +02:00
Stuart Longland
480a944282
plugins.topic_checking tests: Throw test suite at `black`.
...
Clean up the coding style a bit.
2021-08-17 16:20:27 +02:00
Stuart Longland
0cfce9fd84
plugins.test_topic tests: Add tests for TopicTabooPlugin.
...
This is more of a "demo" plug-in, but let's test it anyway.
2021-08-17 16:20:27 +02:00
Stuart Longland
75b8c33263
plugins.topic_checking tests: Test BaseTopicPlugin.
2021-08-17 16:20:27 +02:00
Florian Ludwig
478a2d18c8
entrypoint transition code
2021-03-27 17:49:55 +01:00
Florian Ludwig
e1c73fc53a
update imports in tests
2021-03-27 17:49:55 +01:00
Florian Ludwig
8237912a3b
re-enable plugin manager tests
2021-03-21 19:02:02 +01:00
Florian Ludwig
69a7992b66
rename TestPlugin to so it is ignored by pytest
2021-03-21 19:02:02 +01:00
Marius Kriegerowski
7921e2cc22
linter project with black at default line length 88
2021-03-15 10:18:00 +01:00
Marius Kriegerowski
db3dffa857
use black linter with 96 char line length
2021-03-14 21:44:41 +01:00
Florian Ludwig
b430cc8487
replace assertTrue
2021-03-09 19:13:32 +01:00
Marius Kriegerowski
e0fabc0bc3
Refactor to comply python3.8
2021-03-09 19:13:32 +01:00
Florian Ludwig
bd58685028
mark failing tasts as allowed to fail
2021-03-08 21:08:35 +01:00
Stein Magnus Jodal
ce4824bf70
flake8: Fix all F841 unused local variable warnings
2017-08-07 01:23:21 +02:00
Stein Magnus Jodal
6435e4239c
flake8: Fix all F401 unused imports warnings
2017-08-07 01:23:21 +02:00
Stein Magnus Jodal
8b1aa60587
Change deprecated assertEquals() to assertEqual()
2017-07-26 14:06:13 +02:00
Nico
4dcf8eb477
Revert to 3.4 coroutine syntax
2015-11-01 15:58:20 +01:00
Nico
52e3160995
#HBMQTT-35
...
Refactor yield from -> await
2015-10-16 22:13:37 +02:00
Nicolas Jouanin
b1caea4d6a
Comment test to be done
2015-09-03 21:33:37 +02:00
Nicolas Jouanin
9dc217cf82
Add persistence plugin (WIP)
2015-08-31 22:37:01 +02:00
Nicolas Jouanin
61cdc1a0d2
Implement anonymous and file auth plugin
...
HBMQTT-14
2015-08-29 21:25:59 +02:00
Nicolas Jouanin
d0e32610bd
Add file auth plugin
2015-08-29 15:29:09 +02:00
Nicolas Jouanin
5369e54ffc
Add passlib from password checking
2015-08-29 15:28:47 +02:00
nico
933e0065fa
map() accepts a filter_plugin argument which can be used to filter effective plugin called
2015-08-21 13:37:57 +02:00
nico
b0007676fb
map() method now returns a map of result
...
{plugin1: ret1, plugin2: ret2...} for each plugin called
2015-08-21 13:08:52 +02:00
Nicolas Jouanin
22c7ef674e
Init plugin logger in context
2015-08-20 21:43:18 +02:00
nico
97bb250427
Add wait paramter to fire_event
2015-08-19 13:54:09 +02:00
Nicolas Jouanin
883b230855
change test formatting options
2015-08-17 21:52:26 +02:00
Nicolas Jouanin
2a82d102d7
Disable debug logging
2015-08-16 21:39:53 +02:00
Nicolas Jouanin
a732a5ee72
Implement core PluginManager
2015-08-16 21:37:18 +02:00