Merge pull request #714 from izn/create-symbolic-links

Create symbolic links
This commit is contained in:
tobi-wan-kenobi 2020-10-02 08:09:05 +02:00 committed by GitHub
commit 57f669a5e7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 14 additions and 0 deletions

View file

@ -0,0 +1 @@
arch-update.py

View file

@ -0,0 +1 @@
battery-upower.py

View file

@ -0,0 +1 @@
layout-xkbswitch.py

View file

@ -0,0 +1 @@
layout-xkb.py

View file

@ -11,6 +11,7 @@ Adding a new module to ``bumblebee-status`` is straight-forward:
``bumblebee-status`` (i.e. a module called
``bumblebee_status/modules/contrib/test.py`` will be loaded using
``bumblebee-status -m test``)
- The module name must follow the `Python Naming Conventions <https://www.python.org/dev/peps/pep-0008/#package-and-module-names>`_
- See below for how to actually write the module
- Test (run ``bumblebee-status`` in the CLI)
- Make sure your changes dont break anything: ``./coverage.sh``

View file

@ -3,3 +3,5 @@ import pytest
def test_load_module():
__import__("modules.contrib.arch-update")
def test_load_symbolic_link_module():
__import__("modules.contrib.arch_update")

View file

@ -5,3 +5,6 @@ pytest.importorskip("dbus")
def test_load_module():
__import__("modules.contrib.battery-upower")
def test_load_symbolic_link_module():
__import__("modules.contrib.battery_upower")

View file

@ -3,3 +3,5 @@ import pytest
def test_load_module():
__import__("modules.contrib.layout-xkbswitch")
def test_load_symbolic_link_module():
__import__("modules.contrib.layout_xkbswitch")

View file

@ -5,3 +5,5 @@ pytest.importorskip("xkbgroup")
def test_load_module():
__import__("modules.core.layout-xkb")
def test_load_symbolic_link_module():
__import__("modules.core.layout_xkb")