Skip to content

Commit

Permalink
Update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Hexer10 committed Dec 24, 2024
1 parent 8b601f6 commit a3d132c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion test/channel_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ void main() {
'https://www.youtube.com/channel/UCEnBXANsKmyj2r9xVyKoDiQ';
final channel = await yt!.channels.get(ChannelId(channelUrl));
expect(channel.url, channelUrl);
expect(channel.title, 'Oleksii Holub');
expect(channel.title, 'Tyrrrz');
expect(channel.logoUrl, isNotEmpty);
expect(channel.logoUrl, isNot(equalsIgnoringWhitespace('')));

Expand Down
4 changes: 3 additions & 1 deletion test/data.dart
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,10 @@ enum VideoIdData {
// Videos whose streams can be fetched.
static const playable = [
...VideoIdData.validWatchpage,
/*
Currently YT has disabled unlogged clients from fetching age restricted videos.
ageRestrictedViolent,
ageRestrictedSexual,
ageRestrictedSexual,*/
];

// Cannot fetch metadata or streams.
Expand Down
2 changes: 0 additions & 2 deletions test/playlist_id_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,6 @@ void main() {

group('These are not valid playlist urls', () {
for (final val in {
'youtube.com/playlist?lisp=PLOU2XLYxmsIJGErt5rrCqaSGTMyyqNt2H',
'youtube.com/playlist?list=asd',
'youtube.com/',
}) {
test('PlaylistURL - $val', () {
Expand Down

0 comments on commit a3d132c

Please sign in to comment.