mirror of
https://github.com/znc/znc.git
synced 2026-05-09 23:04:47 +02:00
Fix modpython to show list of available modules
In 1.8.0 I switched from deprecated imp to importlib for loading module by name, but forgot about this function Close #1884
This commit is contained in:
@@ -277,6 +277,11 @@ TEST_F(ZNCTest, ModpythonPackage) {
|
||||
client.Write("znc updatemod packagetest");
|
||||
client.Write("PRIVMSG *packagetest :foo");
|
||||
client.ReadUntil("value = b");
|
||||
// Test if python modules are viewable via *status.
|
||||
// https://github.com/znc/znc/issues/1884
|
||||
client.Write("znc listavailmods");
|
||||
client.ReadUntil(":*status!status@znc.in PRIVMSG nick :\x02 packagetest");
|
||||
client.ReadUntil(":*status!status@znc.in PRIVMSG nick :\x02 pyeval\x0F: Evaluates python code");
|
||||
}
|
||||
|
||||
TEST_F(ZNCTest, ModpythonModperl) {
|
||||
|
||||
Reference in New Issue
Block a user