| 253 | |
| 254 | class 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" |