aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--main.py11
-rw-r--r--slack/__init__.py11
-rw-r--r--tests/conftest.py6
3 files changed, 17 insertions, 11 deletions
diff --git a/main.py b/main.py
new file mode 100644
index 0000000..431484a
--- /dev/null
+++ b/main.py
@@ -0,0 +1,11 @@
+import os
+import sys
+
+sys.path.append(os.path.dirname(os.path.realpath(__file__)))
+from slack.init import main # pylint: disable=wrong-import-position
+from slack.shared import shared # pylint: disable=wrong-import-position
+
+shared.weechat_callbacks = globals()
+
+if __name__ == "__main__":
+ main()
diff --git a/slack/__init__.py b/slack/__init__.py
index 431484a..e69de29 100644
--- a/slack/__init__.py
+++ b/slack/__init__.py
@@ -1,11 +0,0 @@
-import os
-import sys
-
-sys.path.append(os.path.dirname(os.path.realpath(__file__)))
-from slack.init import main # pylint: disable=wrong-import-position
-from slack.shared import shared # pylint: disable=wrong-import-position
-
-shared.weechat_callbacks = globals()
-
-if __name__ == "__main__":
- main()
diff --git a/tests/conftest.py b/tests/conftest.py
index c3d19e9..14dc4a5 100644
--- a/tests/conftest.py
+++ b/tests/conftest.py
@@ -21,3 +21,9 @@ def import_stub(stubs_path: str, module_name: str):
import_stub("typings", "weechat")
+
+
+from slack.shared import shared
+
+shared.weechat_version = 0x3080000
+shared.weechat_callbacks = {}