Skip to content

Commit

Permalink
Use f-string in test_importfeeds
Browse files Browse the repository at this point in the history
Quickfix a thing ment for beetbox#4863
  • Loading branch information
JOJ0 authored and Louis Rannou committed Sep 26, 2023
1 parent ba96fc5 commit 756359b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/test_importfeeds.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def test_playlist_per_session(self):
self.importfeeds.import_begin(self)
self.importfeeds.album_imported(self.lib, album)
date = datetime.datetime.now().strftime("%Y%m%d_%Hh%M")
playlist = os.path.join(self.feeds_dir, 'imports_' + date + '.m3u')
playlist = os.path.join(self.feeds_dir, f'imports_{date}.m3u')
self.assertTrue(os.path.isfile(playlist))
with open(playlist) as playlist_contents:
self.assertIn(item_path, playlist_contents.read())
Expand Down

0 comments on commit 756359b

Please sign in to comment.