Elias Müller
d26f801cec
Update CI pipeline ( #271 )
...
* Trigger on pull request
* run on ubuntu-latest
* run on 3.11 + 3.12 also
* upgrade actions
* upgrade libmpv
* use libmpv-v3 on Windows
* disable fail-fast behavior
* replace pytest with unittest
Using pytest, we run into access violation errors on Windows.
They disappear when we use the unittest module.
2024-01-29 16:52:42 +01:00
jaseg
4e76f01ecc
mpv.py: Add play_bytes convenience function
2024-01-22 11:53:02 +01:00
jaseg
141ec7d372
mpv.py: Add play_context convenience function
2024-01-22 11:53:02 +01:00
Michał Górny
3036f64b68
Replace xvfbwrapper with PyVirtualDisplay
...
Fixes #249
2023-06-03 18:31:21 +02:00
jaseg
7343604f10
Add tests and fix error handling for stream callbacks
2023-02-26 20:15:27 +01:00
jaseg
85aaed090f
tests: Add strategic sleeps to reduce likelihood of race condition during test teardown
2022-07-11 13:49:46 +02:00
Elias Müller
b12203d2d2
Skip unreliable test in CI
2022-07-11 12:44:47 +02:00
Elias Müller
9626d790f5
Remove starter
...
Run:
- python -m unittest
or
- python -m pytest
2022-07-11 12:44:47 +02:00
Elias Müller
5d9cd2b252
Remove unused variables
2022-07-11 12:44:47 +02:00
Elias Müller
0e19248d69
Use two blank lines between classes and functions
2022-07-11 12:44:47 +02:00
Elias Müller
6a71ee0b9a
Comment error prone test
2022-07-11 12:44:47 +02:00
Elias Müller
721cff015b
Add requirements file
2022-07-11 12:44:47 +02:00
Elias Müller
3d90f471d2
Remove unused imports
2022-07-11 12:44:47 +02:00
Louis-Philippe Véronneau
1c0340e2d7
Fix typo in function name
2022-06-17 00:10:57 +02:00
jaseg
5f4cf600b5
Add event queue overflow handling
2022-04-24 13:43:44 +02:00
jaseg
85ad2a6aa6
Finish rewriting event infrastructure
2022-04-22 23:18:48 +02:00
jaseg
c90a5f692f
Continue reworking event infrastrucutre.
...
Note: We do not decode property values by default anymore.
2022-04-22 23:01:13 +02:00
jaseg
f4c9f2fec4
Use mock.Mock to mock Xvfbwrapper on Windows
2022-04-22 21:55:09 +02:00
DepFA
9148f544eb
Windows test workaround
...
Add dummy Xvfb implementation, parameterise vo and use gpu renderer for windows tests
2022-04-22 09:19:54 +01:00
jaseg
6cc0b23114
Update copyright headers
2022-04-18 00:00:19 +02:00
jaseg
1e87833d25
tests: Suppress video output on wayland systems
2022-04-17 23:52:44 +02:00
jaseg
8d448d49f1
Add future-based async command API
2022-04-17 23:52:12 +02:00
jaseg
850bfcbd2f
tests: Fix flaky sub_add test
2022-04-17 22:35:47 +02:00
jaseg
b8cac81b36
tests: Add wait_for_shutdown unit test
2022-04-17 22:35:33 +02:00
jaseg
7459d3df04
tests: Switch to pytest, remove devnull hack
2022-04-17 22:35:13 +02:00
jaseg
0cda09c628
Add timeouts and error forwarding to wait_for_{property,event} conditions
2022-03-26 14:23:04 +01:00
jaseg
a7e61c9362
Fix segmentation fault in unit tests on wayland
2022-03-26 14:23:04 +01:00
Paride Legovini
1f59cfa072
test_property_observer_decorator: bump sleep to 0.1s
...
Fixes flaky test with mpv 0.33.1 on ppc64el.
Closes #178 .
2021-10-14 23:23:35 +02:00
jaseg
d1f304ab92
tests: Make test srt path relative to test script
2020-07-21 08:41:06 +02:00
jaseg
170f15d390
Make tests run when called through setup.py from root dir
2020-07-21 08:37:00 +02:00
Louis-Philippe Véronneau
2b66d0d97b
Move test files into a 'tests' dir
2020-07-21 08:32:47 +02:00