tobi-wan-kenobi
028932a560
[tests/cpu] adapt tests and add per-cpu tests
...
fixes #785
2021-04-27 17:17:55 +02:00
tobi-wan-kenobi
38613495f2
[tests] Adjust for widget hiding
2021-03-13 20:44:36 +01:00
tobi-wan-kenobi
af95b2e276
[tests] fix syntax error
2020-12-27 14:52:45 +01:00
tobi-wan-kenobi
960792b2e5
[tests] fix module load test for python 3.6 and further
2020-12-27 14:49:12 +01:00
John Vandenberg
d0e309ad0f
test_format: Allow 2.00TiB
2020-12-05 14:57:52 +07:00
Joachim Mathes
3c0499ba56
Provide alternative dunstctl implementation
2020-10-18 21:53:47 +02:00
Thaynã Moretti
04a2ea438b
Create layout-xkbswitch tests
2020-10-07 17:37:04 -03:00
Thaynã Moretti
180a87e0c3
Create dunstctl tests
2020-10-05 20:10:01 -03:00
Thaynã Moretti
0a7a4150e0
Create arch-update tests
2020-10-04 15:35:13 -03:00
Thaynã Moretti
4df495601a
Create symbolic links
2020-10-01 19:10:46 -03:00
Thaynã Moretti
9e80d4d907
Add amixer tests
2020-09-28 19:24:45 -03:00
Thaynã Moretti
e7b853c667
Remove useless mock side effect
2020-09-02 22:16:58 -03:00
Thaynã Moretti
710a2cef98
Create uptime and public ip tests
2020-09-02 22:10:09 -03:00
Thaynã Moretti
6c0930cfae
Add load module tests
2020-09-02 14:33:07 -03:00
tobi-wan-kenobi
1638180b6d
Merge pull request #700 from izn/add-date-and-time-module-tests
...
Add date and time module tests
2020-09-02 07:15:56 +02:00
Thaynã Moretti
04f6a6a08f
Add time module tests
2020-09-01 22:16:57 -03:00
Thaynã Moretti
213c28992c
Add date tests
2020-09-01 22:16:57 -03:00
Thaynã Moretti
032a651efa
Improve network traffic module tests
2020-09-01 22:12:54 -03:00
tobi-wan-kenobi
1b66e17780
Merge pull request #699 from izn/add-cpu-module-tests
...
Add CPU module tests
2020-09-02 02:20:47 +02:00
Thaynã Moretti
07f0b7e34a
Add CPU module tests
2020-09-01 20:54:10 -03:00
Thaynã Moretti
b1501a8159
Remove useless import
2020-09-01 20:29:04 -03:00
Thaynã Moretti
f22095e978
Add datetime module tests
2020-08-31 17:48:19 -03:00
Thaynã Moretti
0c8d682d62
Add unit tests
2020-08-30 12:49:33 -03:00
Thaynã Moretti
820598b1b8
Fix memory module tests
2020-08-30 12:11:48 -03:00
Thaynã Moretti
945838dc74
Create memory module tests
2020-08-30 11:15:23 -03:00
Thaynã Moretti
22ddcf42bd
Improve tests
2020-08-29 21:49:41 -03:00
Thaynã Moretti
2c8dafec70
Add Network Traffic module tests
2020-08-29 20:17:39 -03:00
Naya Verdier
13a851a636
[xrandr-tests] Test disconnecting excluded active display
2020-07-26 15:52:47 -07:00
Naya Verdier
06afb03807
[xrandr] add tests for dis/connecting without autotoggle
2020-07-26 13:29:14 -07:00
Naya Verdier
06d6739da4
[xrandr] Add autotoggle behavior to xrandr
...
Also makes i3 subscription events and widget click live-update
2020-07-26 13:21:49 -07:00
Naya Verdier
d05ff39f02
[xrandr] Add unit tests
2020-07-25 10:53:44 -07:00
tobi-wan-kenobi
550b594c86
[tests] fix some test prerequisites
2020-07-21 08:20:55 +02:00
tobi-wan-kenobi
548ccc5e94
[tests] add somewhat experimental import-time tests
...
add auto-generated tests that check that a given module can be imported,
if all prerequisites are followed.
see #641
2020-07-20 13:58:24 +02:00
tobi-wan-kenobi
9be1331e1b
[tests] add placeholder for core tests
2020-07-20 13:17:35 +02:00
tobi-wan-kenobi
9136ebd321
[core/input] clear previous input registrations
...
make sure that for a given event (widget/object/module, whatever), only
a *single* input event per button can be registered at one time.
the problem otherwise is with modules that re-register their widgets
with the same IDs (cmus, spotify, etc.): Each time the widget is
re-created (each intervall, typically), it re-registers an input event,
creating an always longer list of callbacks being executed when the
button is clicked (not speaking of the memory leak this introduces).
fixes #668
2020-06-29 07:44:22 +02:00
tobi-wan-kenobi
81c5e75624
[tests] fix location tests
...
a previous commit that switched the primary and secondary location
provider broke the unit tests - fix that.
2020-06-28 10:45:22 +02:00
tobi-wan-kenobi
954d7545e3
[util/format] make temperature metric case insensitive
...
see #664
2020-06-27 15:02:55 +02:00
Tobias Witek
441e7d5041
[core] fix minimize for all modules (nic, traffic, etc.)
...
make it possible to toggle the display state of a widget between
"displayed" and "minimized" also for modules that re-create their
widgets during each iteration.
see #661
2020-06-23 20:03:17 +02:00
Tobias Witek
34dadadf90
[core] re-enable minimize of widgets
...
by default, allow toggling the minimized state of a widget via the
middle mouse and draw a single unicode char instead of the actual
widget, maintaining all states.
fixes #661
2020-06-23 15:51:14 +02:00
Tobias Witek
79fb28512f
[tests] black -t py34
2020-06-20 15:11:53 +02:00
Tobias Witek
e9e67ae375
[tests/mpd] fix python3.5 for real now, hopefully
2020-06-20 15:07:16 +02:00
Tobias Witek
b22747818b
[tests] fix tests for python3.5
2020-06-20 15:04:10 +02:00
Tobias Witek
a56b3db813
[tests] fix store tests
2020-06-20 14:58:49 +02:00
Tobias Witek
39fa7788b4
[tests] switch to pytest
2020-06-20 14:53:44 +02:00
Tobias Witek
b2e92d816d
[tests] add pytest for core.output
...
see #642
2020-06-20 14:51:49 +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
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
02a80840a1
[core] more black'ing
2020-05-16 12:00:55 +02:00
tobi-wan-kenobi
7584366adc
[tests] add more tests
2020-05-16 11:57:27 +02:00
tobi-wan-kenobi
eea3c758de
[core/input] Invoke commands in a subshell
...
add shell capability to util.cli and make sure that the input module
uses that to reliably spawn whatever command the user wants to run.
see #628
2020-05-16 11:43:43 +02:00