Johan Andersson
7271370c84
test: add test for sort_quality
2019-09-07 12:28:51 +02:00
Johan Andersson
f121567834
test: add ensure_unicode and test_decode_html code
2019-09-07 12:28:21 +02:00
Johan Andersson
addf05baa9
test: improve get_full_url
2019-09-07 12:27:36 +02:00
Johan Andersson
4e187f9553
pre-commit: its a good thing to commit config...
2019-09-06 22:49:49 +02:00
Johan Andersson
3aef9a796e
black fixes
2019-09-06 22:31:52 +02:00
Johan Andersson
9678370dce
Add a bunch of subtitle function unittests
2019-09-06 22:09:07 +02:00
Johan Andersson
375f7d8946
Add support for pytest
2019-09-06 22:09:07 +02:00
Johan Andersson
76a699d25a
pyupgrade fixes
2019-09-06 22:09:07 +02:00
Johan Andersson
7f0cf6eb82
pre-commit: reorder imports
2019-09-06 22:09:07 +02:00
Johan Andersson
e9b16fda77
pre-commit: pyupgrade
2019-09-06 22:09:07 +02:00
Johan Andersson
e105855fb7
pre-commit: black fixes
2019-09-06 22:09:07 +02:00
Johan Andersson
a84b89bafd
Rewrote big parts of the _dashparser
2019-07-13 14:31:13 +02:00
Johan Andersson
feb503e013
daskparse: search for contentType on adaptationset instead of mimype
...
Svtplay stopped using mime type on adaptionset.
Fixes : #1054
2019-03-23 01:20:56 +01:00
Johan Andersson
74f68a535b
fetcher.rtmp: RIP. Who use flash in 2018 anyway.
...
Removing old RTMP and related code.
qbrick is not used anyway.
2018-11-12 19:05:41 +01:00
Johan Andersson
f0efb1b685
tests.dash: add some basic tests for _dashparse
2018-10-07 19:53:09 +02:00
Johan Andersson
b5aed11c17
tests._formatname: add some test on different format test configurations
2018-10-05 23:28:05 +02:00
Olof Johansson
8c19f96e46
output: Adapt test suite to new location of module
...
The output module was moved from svtplay_dl.output to
svtplay_dl.utils.output some time ago.
2018-09-30 19:00:13 +02:00
Olof Johansson
bbf10ee077
hls: Break out get_full_url tests to new test suite (http)
...
The get_full_url was moved some time ago from the hls module to the
svtplay_dl.utils.http module.
2018-09-30 19:00:13 +02:00
Olof Johansson
228d34c500
filenamify: Make the test suite import module from right location
2018-09-30 19:00:13 +02:00
Olof Johansson
5f087f0efa
protocol_prio: Make the test suite import module from right location
...
The tests are still failing, but not from ImportError anymore.
2018-09-30 19:00:13 +02:00
Johan Andersson
ca49366002
Options to config
2018-05-13 13:06:45 +02:00
Johan Andersson
7b6ceb4737
Flake8 fixes
2018-01-30 20:17:33 +01:00
Olof Johansson
251965ed7e
tests/hls: Specify static m3u in module instead of fetching with http
...
This avoids dependency on networking to run the test suite, as well as
making the test suite more robust in case of changes at the remote
location. Because of possible copyright issues, I opted not the use the
m3u file, but create a new one with similar properties.
This change also avoids hash ordering issues, by comparing the python
data structures directly, instead of a dumped json representation. There
are no guarantees that keys are ordered the same way when run in
different environments (and possibly in the same environment at
different times).
2018-01-27 00:29:23 +01:00
dalgr
c28e35b1cb
Add tag 'URI' and simplify m3u json
2018-01-07 01:53:00 +01:00
dalgr
73bdf87b38
Fix bug in m3u8 parser, add a test for 'parse_m3u8.master_playlist'
2018-01-07 01:53:00 +01:00
Johan Andersson
d8b2b8efa6
timestr: leading zero in single digit
2016-06-03 00:09:11 +02:00
Olof Johansson
5393dc1929
Fix various pylint warnings
...
None of these were any real problems, but easier to spot real issues if pylint
is a bit quieter. Apart from the pylint overrides being sprinkled over the code
base, this commit also fixes occurences of the following issues:
- logging-not-lazy
- logging-format-interpolation
- unused-import
- unused-variable
2016-04-03 19:06:45 +02:00
Olof Johansson
f59207302d
prio_streams: Rename to protocol_prio
2016-03-31 20:33:44 +02:00
Olof Johansson
a6e05e4502
prio_streams: make protocol_prio param mandatory
...
Move the responsibility for extracting it to select_quality (prio_streams'
caller). This makes the prio_streams function simpler.
And at the same time, move the default protocol_prio list to global scope. This
can for instance be used for improved error reporting.
2016-03-31 20:19:44 +02:00
Johan Andersson
e20f1212c0
update tests
2016-03-28 21:11:32 +02:00
Olof Johansson
e781a1e89b
prio_streams: add unit tests
2016-03-13 16:56:51 +01:00
Olof Johansson
f4005505d9
filenamify: Simplify and add unittests
2016-01-10 15:03:45 +01:00
Johan Andersson
dc2cc0294c
pip8. expected 2 lines found 1
2015-09-15 20:10:32 +02:00
Olof Johansson
09f2f67b8e
Rename tests.utils to tests.subtitle
2014-10-12 21:27:16 +02:00
Johan Andersson
b1473f2eae
tests: fix output tests after changed progressbar size.
2014-08-27 19:29:32 +02:00
Olof Johansson
a6e030b803
tests: test that progressbar adjusts to term width
...
Reference: #ep14boat
2014-07-24 18:46:28 +02:00
Olof Johansson
17500539a5
Fix unittest failures for progessbar
...
This solution is not super nice, but solves the current errors. A proper mock
based solution would probably be preferable.
Reference: #ep14boat
2014-07-24 18:39:15 +02:00
Johan Andersson
4b06a32753
tests: update the path to timestr
2014-06-03 16:40:19 +02:00
Olof Johansson
38b3c7820b
hls: automatically detect baseurl
2014-02-08 17:40:25 +01:00
Olof Johansson
1372a4e12e
svtplay_dl.tests.output: initial set of unit tests for progress()
2013-04-19 18:12:36 +02:00
Olof Johansson
0136c06a3b
svtplay_dl.output: add an ETA class
...
This class is used to calculate remaining time to process a given
list of items.
2013-03-25 19:32:06 +01:00
Olof Johansson
652218e568
svtplay_dl.tests.output: fix indentation damage
...
And add a note about rewriting the mockfile hack.
2013-03-23 19:21:09 +01:00
Olof Johansson
a02a46752d
Add unit tests for timestr()
2013-03-23 18:08:20 +01:00
Johan Andersson
cfd20232ab
Rename module from lib/svtplay to lib/svtplay_dl
...
less confusion with the service.
2013-03-17 19:55:19 +01:00