From: Stefano Rivera Date: Thu, 6 Jun 2024 13:49:51 +0100 Subject: Allow overriding the path to test resources They aren't installed in the binary package. Forwarded: not-needed --- beets/test/_common.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/beets/test/_common.py b/beets/test/_common.py index f629e7b..3ff1d5f 100644 --- a/beets/test/_common.py +++ b/beets/test/_common.py @@ -25,7 +25,12 @@ if TYPE_CHECKING: from beets.library import Item, Library # Test resources path. -RSRC = (Path(__file__).parent.parent.parent / "test" / "rsrc").resolve() +RSRC = Path( + os.environ.get( + "RSRC", + (Path(__file__).parent.parent.parent / "test" / "rsrc").resolve() + ) + ) PLUGINPATH = str(RSRC / "beetsplug") # Propagate to root logger so the test runner can capture it