mirror of
https://github.com/beetbox/beets.git
synced 2025-12-06 08:39:17 +01:00
Future proof BucketPluginTest.test_year_single_year_last_folder
2025 won't be in the future, forever. Fixes: https://bugs.debian.org/1091495
This commit is contained in:
parent
faf7529aa9
commit
bcc79a5b09
1 changed files with 4 additions and 1 deletions
|
|
@ -14,6 +14,8 @@
|
|||
|
||||
"""Tests for the 'bucket' plugin."""
|
||||
|
||||
from datetime import datetime
|
||||
|
||||
import pytest
|
||||
|
||||
from beets import config, ui
|
||||
|
|
@ -51,7 +53,8 @@ class BucketPluginTest(BeetsTestCase):
|
|||
year."""
|
||||
self._setup_config(bucket_year=["1950", "1970"])
|
||||
assert self.plugin._tmpl_bucket("2014") == "1970"
|
||||
assert self.plugin._tmpl_bucket("2025") == "2025"
|
||||
next_year = datetime.now().year + 1
|
||||
assert self.plugin._tmpl_bucket(str(next_year)) == str(next_year)
|
||||
|
||||
def test_year_two_years(self):
|
||||
"""Buckets can be named with the 'from-to' syntax."""
|
||||
|
|
|
|||
Loading…
Reference in a new issue