mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2025-12-08 23:22:44 +01:00
[test] Move dict_get() traversal test to its own class
Matches yt-dlp/yt-dlp#9426
This commit is contained in:
@@ -476,6 +476,8 @@ class TestTraversal(_TestCase):
|
|||||||
def test_get_first(self):
|
def test_get_first(self):
|
||||||
self.assertEqual(get_first([{'a': None}, {'a': 'spam'}], 'a'), 'spam')
|
self.assertEqual(get_first([{'a': None}, {'a': 'spam'}], 'a'), 'spam')
|
||||||
|
|
||||||
|
|
||||||
|
class TestDictGet(_TestCase):
|
||||||
def test_dict_get(self):
|
def test_dict_get(self):
|
||||||
FALSE_VALUES = {
|
FALSE_VALUES = {
|
||||||
'none': None,
|
'none': None,
|
||||||
|
|||||||
Reference in New Issue
Block a user