[test:youtube_signature] Avoid testdata dupes now that we cache by URL path

Authored by: bashonly
pull/12761/head
bashonly 4 months ago
parent 538f7a7772
commit 9f7a8ab151
No known key found for this signature in database
GPG Key ID: 783F096F253D15B0

@ -357,7 +357,7 @@ def t_factory(name, sig_func, url_pattern):
test_id = re.sub(r'[/.-]', '_', m.group('id') or m.group('compat_id'))
def test_func(self):
basename = f'player-{name}-{test_id}.js'
basename = f'player-{test_id}.js'
fn = os.path.join(self.TESTDATA_DIR, basename)
if not os.path.exists(fn):

Loading…
Cancel
Save