Skip to content

Commit 3c8179a

Browse files
committed
Replace assertAlbumImport
1 parent c6b5b3b commit 3c8179a

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

test/plugins/test_importadded.py

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -68,22 +68,23 @@ def find_media_file(self, item):
6868
"No MediaFile found for Item " + displayable_path(item.path)
6969
)
7070

71-
def assertAlbumImport(self):
71+
def test_import_album_with_added_dates(self):
7272
self.importer.run()
73+
7374
album = self.lib.albums().get()
7475
assert album.added == self.min_mtime
7576
for item in album.items():
7677
assert item.added == self.min_mtime
7778

78-
def test_import_album_with_added_dates(self):
79-
self.assertAlbumImport()
80-
8179
def test_import_album_inplace_with_added_dates(self):
8280
self.config["import"]["copy"] = False
83-
self.config["import"]["move"] = False
84-
self.config["import"]["link"] = False
85-
self.config["import"]["hardlink"] = False
86-
self.assertAlbumImport()
81+
82+
self.importer.run()
83+
84+
album = self.lib.albums().get()
85+
assert album.added == self.min_mtime
86+
for item in album.items():
87+
assert item.added == self.min_mtime
8788

8889
def test_import_album_with_preserved_mtimes(self):
8990
self.config["importadded"]["preserve_mtimes"] = True

0 commit comments

Comments
 (0)