-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a regression test for issue #4631
- Loading branch information
1 parent
f95a232
commit 5fcc6f5
Showing
3 changed files
with
14 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# pylint: disable=missing-function-docstring | ||
|
||
""" | ||
Regression tests for StopIteration raised when using limit-inference-results=0 | ||
""" | ||
|
||
|
||
def get_youtube_link(song_name: str, song_artists): | ||
with open("possible errors.txt", "ab") as file: | ||
file.write(f"{', '.join(song_artists)} - {song_name}".encode()) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
[testoptions] | ||
limit-inference-results=0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
unused-import:9:0::Unused YTMusic imported from ytmusicapi:HIGH | ||
undefined-variable:16:18:get_youtube_link:Undefined variable '__query_ytmusic':HIGH |