File tree Expand file tree Collapse file tree 3 files changed +2
-13
lines changed Expand file tree Collapse file tree 3 files changed +2
-13
lines changed Original file line number Diff line number Diff line change 58
58
log .propagate = True
59
59
log .setLevel (logging .DEBUG )
60
60
61
- # Dummy item creation.
62
- _item_ident = 0
63
-
64
61
# OS feature test.
65
62
HAVE_SYMLINK = sys .platform != "win32"
66
63
HAVE_HARDLINK = sys .platform != "win32"
67
64
68
65
69
66
def item (lib = None ):
70
- global _item_ident
71
- _item_ident += 1
72
67
i = beets .library .Item (
73
68
title = "the title" ,
74
69
artist = "the artist" ,
@@ -93,7 +88,6 @@ def item(lib=None):
93
88
comments = "the comments" ,
94
89
bpm = 8 ,
95
90
comp = True ,
96
- path = f"somepath{ _item_ident } " ,
97
91
length = 60.0 ,
98
92
bitrate = 128000 ,
99
93
format = "FLAC" ,
Original file line number Diff line number Diff line change @@ -713,10 +713,6 @@ def choose_match(self, task):
713
713
714
714
default_resolution = "REMOVE"
715
715
716
- def add_resolution (self , resolution ):
717
- assert isinstance (resolution , self .Resolution )
718
- self ._resolutions .append (resolution )
719
-
720
716
def resolve_duplicate (self , task , found_duplicates ):
721
717
try :
722
718
res = self ._resolutions .pop (0 )
@@ -769,12 +765,10 @@ def _add_choice_input(self):
769
765
self .io .addinput ("T" )
770
766
elif choice == importer .action .SKIP :
771
767
self .io .addinput ("S" )
772
- elif isinstance ( choice , int ) :
768
+ else :
773
769
self .io .addinput ("M" )
774
770
self .io .addinput (str (choice ))
775
771
self ._add_choice_input ()
776
- else :
777
- raise Exception ("Unknown choice %s" % choice )
778
772
779
773
780
774
class TerminalImportMixin (ImportHelper ):
Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ markers =
14
14
data_file = .reports/coverage/data
15
15
branch = true
16
16
relative_files = true
17
+ omit = beets/test/*
17
18
18
19
[coverage:report]
19
20
precision = 2
You can’t perform that action at this time.
0 commit comments