MCPcopy
hub / github.com/beetbox/beets / setUp

Method setUp

test/test_files.py:255–270  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

253
254class AlbumFileTest(BeetsTestCase):
255 def setUp(self):
256 super().setUp()
257
258 # Make library and item.
259 self.lib.path_formats = [
260 ("default", join("$albumartist", "$album", "$title"))
261 ]
262 self.i = item(self.lib)
263 # Make a file for the item.
264 self.i.path = self.i.destination()
265 util.mkdirall(self.i.path)
266 touch(self.i.path)
267 # Make an album.
268 self.ai = self.lib.add_album((self.i,))
269 # Alternate destination dir.
270 self.otherdir = os.path.join(self.temp_dir, b"testotherdir")
271
272 def test_albuminfo_move_changes_paths(self):
273 self.ai.album = "newAlbumName"

Callers

nothing calls this directly

Calls 7

itemFunction · 0.90
touchFunction · 0.90
joinFunction · 0.85
destinationMethod · 0.80
joinMethod · 0.80
setUpMethod · 0.45
add_albumMethod · 0.45

Tested by

no test coverage detected