Commit graph

2278 commits

Author SHA1 Message Date
tobi-wan-kenobi
a1d2e1d8f9
Merge pull request #657 from rosalogia/main
More tests for mpd module
2020-06-19 19:48:37 +02:00
Ambika Nair
6271a0b91d Added mpd module tests for update and layout 2020-06-19 06:35:44 -04:00
Ambika Nair
52f5315ec5 Added more tests for mpd module 2020-06-19 06:12:30 -04:00
tobi-wan-kenobi
639c373578
Merge pull request #656 from rosalogia/main
Added super simple test for mpd module
2020-06-19 12:02:31 +02:00
Ambika Nair
f4a5d05c1e Got state function test for shuffle working 2020-06-19 05:00:56 -04:00
Ambika Nair
0574775995 Added super simple test for mpd module 2020-06-19 04:13:52 -04:00
Tobias Witek
ea1e1694bf [tests] add pytest for core.input
see #642
2020-06-19 10:10:02 +02:00
Tobias Witek
53258a9ffd [tests] add pytest for util.store
see #642
2020-06-19 09:48:14 +02:00
Tobias Witek
08240c2e82 [pytests/test_kernel] apply black -t py34 2020-06-19 09:35:00 +02:00
Tobias Witek
9cc26c8a95 [tests] add pytest for util.location
see #642
2020-06-19 09:34:21 +02:00
Tobias Witek
8258ff1bab [doc] rename master -> main 2020-06-19 09:16:29 +02:00
tobi-wan-kenobi
e4520d19bf
Merge pull request #653 from rosalogia/master
Replicated kernel module unittest with pytest
2020-06-19 09:08:46 +02:00
tobi-wan-kenobi
88a3350b78
Merge pull request #654 from rosalogia/patch-1
Fixed minor typo in unit testing guidelines
2020-06-19 09:06:56 +02:00
Ambika Nair
0bdc019a0d
Fixed minor typo in unit testing guidelines 2020-06-19 03:04:41 -04:00
Ambika Nair
19c3975301 Style Fix: changed double quotes to single quotes 2020-06-18 17:27:28 -04:00
Ambika Nair
900988e5ce Replicated kernel module unittest with pytest 2020-06-18 17:22:00 -04:00
Tobias Witek
3461272611 [tests] add pytest for util.format
see #642
2020-06-18 20:18:40 +02:00
Tobias Witek
058089d453 [tests] add pytest for util.cli
see #642
2020-06-18 20:01:45 +02:00
Tobias Witek
b9754a5b3e [docs] update 2020-06-18 07:14:10 +02:00
tobi-wan-kenobi
e139c4211c [doc/dev] module: fix misleading text
fixes #651
2020-06-10 20:25:05 +02:00
tobi-wan-kenobi
1ebbfbae14 [doc] add dev documentation on widget states
fixes #651
2020-06-09 20:45:54 +02:00
tobi-wan-kenobi
16269ff01e [core/input] add variables to custom cli calls
when specifying event bindings via CLI (e.g. disk.left-click=thunar),
allow for variables ({instance} and {name}, in particular).

fixes #650
2020-06-09 20:29:51 +02:00
tobi-wan-kenobi
60cdbab76e [tests] add pytest for algorithm
see #642
2020-06-07 16:15:18 +02:00
tobi-wan-kenobi
a394469c0f
Merge pull request #646 from smitajit/master
[module] playerctl to displays information about the current song in …
2020-06-06 16:01:05 +02:00
tobi-wan-kenobi
ba82f5a50f [core/theme] Fix loading of iconsets
* First, make iconsets override anything already present in the "base"
configuration
* Second, make sure that CLI provided iconsets have higher priority than
"built-in" ones

see #648
2020-06-06 15:59:19 +02:00
smitajit
2dff5e2de7 migrated playerctl script to new bumblebee_status APIs 2020-06-06 14:39:50 +02:00
tobi-wan-kenobi
034e8eefb9 [core/theme] make iconsets take precedence over "main" theme
see #648
2020-06-05 20:10:50 +02:00
tobi-wan-kenobi
cb9a60668a [core/theme] Fix detection of "best matching theme"
Previous code accepted the "first" hit in a theme - particularly, if a
module is called "A" and a *different* module "B" uses "A" as state, a
widget of module B with state A would be themed as *module* A, wrongly.

Essentially, made sure that the last (most specific) themeing "wins".

fixes #647
2020-06-04 20:56:31 +02:00
tobi-wan-kenobi
747e67e1be [bumblebee-status] add python 2.x warning
explicitly report that Python 2.x is not supported

see #645
2020-06-04 20:30:48 +02:00
tobi-wan-kenobi
ffae9c2e26 [docs] add version badges for AUR and PyPI 2020-06-04 08:04:11 +02:00
tobi-wan-kenobi
b7723c7fa3 [doc] re-add user contribution section
this was accidentally removed during the merge :(
2020-06-04 07:57:53 +02:00
Smitajit Biswal
4912fcc57b [module] playerctl to displays information about the current song in vlc, audacious, bmp, xmms2, spotify and others 2020-06-03 21:50:36 +02:00
tobi-wan-kenobi
19fa783997 [tests] add pytest for decorators 2020-06-03 20:27:24 +02:00
tobi-wan-kenobi
23d7222576 [core/theme] take alias into consideration when themeing
see #643
2020-06-03 07:59:09 +02:00
tobi-wan-kenobi
20866ca7c0 [modules/arch-update] perform update in background 2020-06-03 07:51:44 +02:00
tobi-wan-kenobi
cb30b7175d [tests] update test_config for pytests
see #642
2020-06-02 20:34:49 +02:00
tobi-wan-kenobi
800d603c1f
Merge pull request #644 from ammgws/patch-1
contrib/apt: amend typo
2020-06-02 20:15:32 +02:00
tobi-wan-kenobi
e73b361f62 [tests] add pytest for config
see #642
2020-06-02 20:14:06 +02:00
tobi-wan-kenobi
5e40dfb28a [all] small fixed picked up by pytest
- unicode stuff
- make all regexps regex strings
2020-06-02 20:13:39 +02:00
Jason
cd0d97791e
contrib/apt: amend typo 2020-06-02 23:20:20 +09:00
tobi-wan-kenobi
9cadcee844 [core/events] simplify args/kwargs detection 2020-06-01 11:35:26 +02:00
tobi-wan-kenobi
86fb4c38ea [tests] add pytest for events
see #642
2020-06-01 11:35:21 +02:00
tobi-wan-kenobi
d38a21983c [modules/ping] Use framework background update functionality
see #640
2020-05-30 17:25:47 +02:00
tobi-wan-kenobi
547874dafd [core/module] allow modules to perform updates in background
a module can now set `self.background = True` in its `__init__()` method
to make sure its update method is invoked in a separate thread.

also, do a PoC implementation of this for the github module.

TODO: add this to dev doc

see #640
2020-05-30 17:22:02 +02:00
tobi-wan-kenobi
a13898cbae [bumblebee-status] fix double "version" line 2020-05-30 17:20:13 +02:00
tobi-wan-kenobi
55121c86d4 [util/popup] add generic "close" on root menu
add a "close" entry for the root menu of all popup menus (if they are
not automatically destroyed when leaving the menu).

fixes #633
2020-05-30 15:19:31 +02:00
tobi-wan-kenobi
cb13fbf917 [doc/README] update links to point to readthedocs 2020-05-30 10:08:41 +02:00
tobi-wan-kenobi
1c04068f89 [util/popup] replace mainloop with custom loop
add a custom event loop for popups that closes the menu on mouse button
release events and - most importantly - propagates this event back to
any parent menu.

fixes #633
2020-05-30 10:02:12 +02:00
tobi-wan-kenobi
b9a30ae235 [doc] update module doc 2020-05-29 11:12:40 +02:00
tobi-wan-kenobi
68b1156d15 [modules/github] Add updated screenshot 2020-05-29 11:12:11 +02:00