File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -148,7 +148,10 @@ def test_album_fallback(self):
148
148
class DestinationTest (_common .TestCase ):
149
149
def setUp (self ):
150
150
super ().setUp ()
151
- self .lib = beets .library .Library (':memory:' )
151
+ # default directory is ~/Music and the only reason why it was switched
152
+ # to ~/.Music is to confirm that tests works well when path to
153
+ # temporary directory contains .
154
+ self .lib = beets .library .Library (':memory:' , '~/.Music' )
152
155
self .i = item (self .lib )
153
156
154
157
def tearDown (self ):
@@ -224,7 +227,7 @@ def test_destination_escapes_leading_dot(self):
224
227
self .i .album = '.something'
225
228
dest = self .i .destination ()
226
229
self .assertTrue (b'something' in dest )
227
- self .assertFalse (b'/.' in dest )
230
+ self .assertFalse (b'/.something ' in dest )
228
231
229
232
def test_destination_preserves_legitimate_slashes (self ):
230
233
self .i .artist = 'one'
You can’t perform that action at this time.
0 commit comments