From: Stefano Rivera <stefanor@debian.org>
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 54e674d..af99b6b 100644
--- a/beets/test/_common.py
+++ b/beets/test/_common.py
@@ -20,7 +20,12 @@ if TYPE_CHECKING:
     import pytest
 
 # 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
