Merge pull request #714 from izn/create-symbolic-links
Create symbolic links
This commit is contained in:
commit
57f669a5e7
9 changed files with 14 additions and 0 deletions
1
bumblebee_status/modules/contrib/arch_update.py
Symbolic link
1
bumblebee_status/modules/contrib/arch_update.py
Symbolic link
|
@ -0,0 +1 @@
|
||||||
|
arch-update.py
|
1
bumblebee_status/modules/contrib/battery_upower.py
Symbolic link
1
bumblebee_status/modules/contrib/battery_upower.py
Symbolic link
|
@ -0,0 +1 @@
|
||||||
|
battery-upower.py
|
1
bumblebee_status/modules/contrib/layout_xkbswitch.py
Symbolic link
1
bumblebee_status/modules/contrib/layout_xkbswitch.py
Symbolic link
|
@ -0,0 +1 @@
|
||||||
|
layout-xkbswitch.py
|
1
bumblebee_status/modules/core/layout_xkb.py
Symbolic link
1
bumblebee_status/modules/core/layout_xkb.py
Symbolic link
|
@ -0,0 +1 @@
|
||||||
|
layout-xkb.py
|
|
@ -11,6 +11,7 @@ Adding a new module to ``bumblebee-status`` is straight-forward:
|
||||||
``bumblebee-status`` (i.e. a module called
|
``bumblebee-status`` (i.e. a module called
|
||||||
``bumblebee_status/modules/contrib/test.py`` will be loaded using
|
``bumblebee_status/modules/contrib/test.py`` will be loaded using
|
||||||
``bumblebee-status -m test``)
|
``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
|
- See below for how to actually write the module
|
||||||
- Test (run ``bumblebee-status`` in the CLI)
|
- Test (run ``bumblebee-status`` in the CLI)
|
||||||
- Make sure your changes don’t break anything: ``./coverage.sh``
|
- Make sure your changes don’t break anything: ``./coverage.sh``
|
||||||
|
|
|
@ -3,3 +3,5 @@ import pytest
|
||||||
def test_load_module():
|
def test_load_module():
|
||||||
__import__("modules.contrib.arch-update")
|
__import__("modules.contrib.arch-update")
|
||||||
|
|
||||||
|
def test_load_symbolic_link_module():
|
||||||
|
__import__("modules.contrib.arch_update")
|
||||||
|
|
|
@ -5,3 +5,6 @@ pytest.importorskip("dbus")
|
||||||
def test_load_module():
|
def test_load_module():
|
||||||
__import__("modules.contrib.battery-upower")
|
__import__("modules.contrib.battery-upower")
|
||||||
|
|
||||||
|
def test_load_symbolic_link_module():
|
||||||
|
__import__("modules.contrib.battery_upower")
|
||||||
|
|
||||||
|
|
|
@ -3,3 +3,5 @@ import pytest
|
||||||
def test_load_module():
|
def test_load_module():
|
||||||
__import__("modules.contrib.layout-xkbswitch")
|
__import__("modules.contrib.layout-xkbswitch")
|
||||||
|
|
||||||
|
def test_load_symbolic_link_module():
|
||||||
|
__import__("modules.contrib.layout_xkbswitch")
|
||||||
|
|
|
@ -5,3 +5,5 @@ pytest.importorskip("xkbgroup")
|
||||||
def test_load_module():
|
def test_load_module():
|
||||||
__import__("modules.core.layout-xkb")
|
__import__("modules.core.layout-xkb")
|
||||||
|
|
||||||
|
def test_load_symbolic_link_module():
|
||||||
|
__import__("modules.core.layout_xkb")
|
||||||
|
|
Loading…
Reference in a new issue