chore(wallapper_changer): move testfiles

This commit is contained in:
Lucas Vivo committed 2026-11-20 15:58:05 +01:00
1 parent 6ac508745c
commit c9a4d7f0c3
36 files changed
+52 -52

No files matched your search

Binary file not shown.

Before

Width:  |  Height:  |  Size: 743 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 848 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 518 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 838 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 569 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 691 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 502 KiB

@@ -1,4 +0,0 @@
Salted__zKªÉ?t0süÅø)/¤—¾9ìv„‚)ŽDè¬�¯I\‹Y68¡Â1…¶Õäh‰L(/µ‚á(úâºlNE{�€–�bŠ-œû¬žû¥? ©SHŒâ–/ÏvæŽ
Ê�h0aס�r‰òÃ& \€¬Ùû´wóæ!Q| —,Ðâ9‹�SÚâxs%¶úâïö¢ªé|kqÆ5|»ryo«ßx¡y2¤K‰Sã�‚ƒ}‘¤ÄP3â±·t$ õ½6ôó¹rXŸ8†ü%»y�pDÕŽV¯X€—~§6nÙ(Xˆ ²NyŠ:Ý�(êtŒ²Š -&Ð>'ûDÝ{³.¶$ƒ@T%2|ñV«34®½‚�”°~à÷ÞpºÊ†t?ãb{2¡–—Ö›©Ó(ÃB"�…È´›Hü�`÷{Ôú}¯Œ…14bžûB}ÅÒS R?¤L`0øu–d|·Ä:g¶ÅO©␍öÅ—¹aúyWÂ
WWÿzˆJ:x|kR/uƆ+goçØj6E'Y€½1Z?~ŠÌÌ0ÿ”‡˜³Ôýü1¿Ç’qy<YþÈ $ �¡l¨)Ú¹Œ…—"ª�2rç›!Ãð4¥l¢ù"A×I•ôd4Îæh­ô "[±ñÔSÛè\¶áx³Swç±Ýðßöµ™p ì=Ø1�
k~3d¡'넇éž)pyð«_êÀ%½(n6ëP» GàÏ ö(ÚÿâëáJwÄܬ¢®I…˜–[|Ò£MèôZqÈäk©ÿÍ0à48gá·=­�0Š2U¯øðP]-˜}ày!~þ #ãFÉÁ’lòÁ³Ò}ym$¸ñE' �ÃKøþHAÿcù3àH>—ÕçT{;˜Œx¤_µbp– jŸfÉ´ãùæêÌÿá,(IÿTU—ÐWšì½„Vÿ‰èÙ3u¼§K@üDº›´ö¨³‘ÿÊAÑgé±ü« 2:˵yùþÆT¢ŠÑuÎ*Xzâ·fü“F¿i›¢¥×Ò–Qý;ÜŠÌâIÉ—¤Ûïwê%k¦G+ÐøDŒLV+òs‘©MJ¯|uO¯l<¼
Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.9 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 743 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.9 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 187 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 788 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 420 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 16 KiB

@@ -1,23 +0,0 @@
<monitors version="2">
<configuration>
<logicalmonitor>
<x>0</x>
<y>0</y>
<scale>1</scale>
<primary>yes</primary>
<monitor>
<monitorspec>
<connector>eDP-1</connector>
<vendor>NCP</vendor>
<product>0x0046</product>
<serial>0x00000000</serial>
</monitorspec>
<mode>
<width>1920</width>
<height>1080</height>
<rate>59.934</rate>
</mode>
</monitor>
</logicalmonitor>
</configuration>
</monitors>
@@ -1,47 +0,0 @@
<monitors version="2">
<configuration>
<!-- Monitor 1: LEFT -->
<logicalmonitor>
<x>0</x>
<y>0</y>
<scale>1</scale>
<primary>yes</primary>
<monitor>
<monitorspec>
<connector>eDP-1</connector>
<vendor>NCP</vendor>
<product>0x0046</product>
<serial>0x00000000</serial>
</monitorspec>
<mode>
<width>1920</width>
<height>1080</height>
<rate>59.934</rate>
</mode>
</monitor>
</logicalmonitor>
<!-- Monitor 2: RIGHT -->
<logicalmonitor>
<x>1920</x>
<y>0</y>
<scale>1</scale>
<monitor>
<monitorspec>
<connector>HDMI-1</connector>
<vendor>AUS</vendor>
<product>ASUS VG27W</product>
<serial>0x0003fba3</serial>
</monitorspec>
<mode>
<width>1920</width>
<height>1080</height>
<rate>143.992</rate>
</mode>
</monitor>
</logicalmonitor>
</configuration>
</monitors>
@@ -1,68 +0,0 @@
<monitors version="2">
<configuration>
<!-- Monitor 1: LEFT -->
<logicalmonitor>
<x>0</x>
<y>0</y>
<scale>1</scale>
<primary>yes</primary>
<monitor>
<monitorspec>
<connector>eDP-1</connector>
<vendor>NCP</vendor>
<product>0x0046</product>
<serial>0x00000000</serial>
</monitorspec>
<mode>
<width>1920</width>
<height>1080</height>
<rate>59.934</rate>
</mode>
</monitor>
</logicalmonitor>
<!-- Monitor 2: CENTER -->
<logicalmonitor>
<x>1920</x>
<y>0</y>
<scale>1</scale>
<monitor>
<monitorspec>
<connector>HDMI-1</connector>
<vendor>AUS</vendor>
<product>ASUS VG27W</product>
<serial>0x0003fba3</serial>
</monitorspec>
<mode>
<width>1920</width>
<height>1080</height>
<rate>143.992</rate>
</mode>
</monitor>
</logicalmonitor>
<!-- Monitor 3: RIGHT -->
<logicalmonitor>
<x>3840</x>
<y>0</y>
<scale>1</scale>
<monitor>
<monitorspec>
<connector>HDMI-2</connector>
<vendor>LGD</vendor>
<product>LG</product>
<serial>345678</serial>
</monitorspec>
<mode>
<width>1920</width>
<height>1080</height>
<rate>60.000</rate>
</mode>
</monitor>
</logicalmonitor>
</configuration>
</monitors>
@@ -1,147 +0,0 @@
<monitors version="2">
<!-- ================================= -->
<!-- CONFIGURATION 1: LAPTOP ONLY -->
<!-- ================================= -->
<configuration>
<logicalmonitor>
<x>0</x>
<y>0</y>
<scale>1</scale>
<primary>yes</primary>
<monitor>
<monitorspec>
<connector>eDP-1</connector>
<vendor>NCP</vendor>
<product>0x0046</product>
<serial>0x00000000</serial>
</monitorspec>
<mode>
<width>1920</width>
<height>1080</height>
<rate>59.934</rate>
</mode>
</monitor>
</logicalmonitor>
</configuration>
<!-- ================================= -->
<!-- CONFIGURATION 2: TWO MONITORS -->
<!-- ================================= -->
<configuration>
<!-- LEFT: Laptop -->
<logicalmonitor>
<x>0</x>
<y>0</y>
<scale>1</scale>
<primary>yes</primary>
<monitor>
<monitorspec>
<connector>eDP-1</connector>
<vendor>NCP</vendor>
<product>0x0046</product>
<serial>0x00000000</serial>
</monitorspec>
<mode>
<width>1920</width>
<height>1080</height>
<rate>59.934</rate>
</mode>
</monitor>
</logicalmonitor>
<!-- RIGHT: ASUS -->
<logicalmonitor>
<x>1920</x>
<y>0</y>
<scale>1</scale>
<monitor>
<monitorspec>
<connector>HDMI-1</connector>
<vendor>AUS</vendor>
<product>ASUS VG27W</product>
<serial>0x0003fba3</serial>
</monitorspec>
<mode>
<width>1920</width>
<height>1080</height>
<rate>143.992</rate>
</mode>
</monitor>
</logicalmonitor>
</configuration>
<!-- ================================= -->
<!-- CONFIGURATION 3: THREE MONITORS -->
<!-- ================================= -->
<configuration>
<!-- LEFT: Laptop -->
<logicalmonitor>
<x>0</x>
<y>0</y>
<scale>1</scale>
<primary>yes</primary>
<monitor>
<monitorspec>
<connector>eDP-1</connector>
<vendor>NCP</vendor>
<product>0x0046</product>
<serial>0x00000000</serial>
</monitorspec>
<mode>
<width>1920</width>
<height>1080</height>
<rate>59.934</rate>
</mode>
</monitor>
</logicalmonitor>
<!-- CENTER: ASUS -->
<logicalmonitor>
<x>1920</x>
<y>0</y>
<scale>1</scale>
<monitor>
<monitorspec>
<connector>HDMI-1</connector>
<vendor>AUS</vendor>
<product>ASUS VG27W</product>
<serial>0x0003fba3</serial>
</monitorspec>
<mode>
<width>1920</width>
<height>1080</height>
<rate>143.992</rate>
</mode>
</monitor>
</logicalmonitor>
<!-- RIGHT: LG -->
<logicalmonitor>
<x>3840</x>
<y>0</y>
<scale>1</scale>
<monitor>
<monitorspec>
<connector>HDMI-2</connector>
<vendor>LGD</vendor>
<product>LG</product>
<serial>345678</serial>
</monitorspec>
<mode>
<width>1920</width>
<height>1080</height>
<rate>60.000</rate>
</mode>
</monitor>
</logicalmonitor>
</configuration>
</monitors>
@@ -1,52 +0,0 @@
-----BEGIN PRIVATE KEY-----
MIIJQgIBADANBgkqhkiG9w0BAQEFAASCCSwwggkoAgEAAoICAQCloVcXR5MqDTGC
mgX5mtTdSsLo85wqUuqsx/Qnc2NRWpggbXee6s1Es/sSb8D4zYqvGHajEiYrWRR2
0kzbqRYNQo6VSN9nlkXqk1Oiw9fXqZ65xBujF75wcbk1+IGW3trkq376vNLxZjVB
jEXH9NnyOEodgUN+JYjRTbnyIgCBnbeRWApLkPvws2ZfKAfuW7gyyGxP1/u2ozpD
vEOicOAV8UPxWMNKC8Q1ZXUoPqBjD7knIRdzWaNL9b8R3SdyduBVjBHlmr1yYY5N
l+QCyGOpAmbarl6hKNOUaeIGNIntd8EbyxZlcC5n924yh3AB8vSUmz9e8E6ng8Tx
C/IEpYb8yOONl4FaVngknzun8wA97Wa4LDtu13/SwfJw4Nl5W0V9iOWRwPRHYHLY
oYGpKO0eVo5vruTn1ok+k3Hi2gRtDRQ8J/LWo+eAhCa+OP+BdrETgKRd5lAcBCwl
2kARBfywisPpfgLQhPjqBFdfAKwSe/XKIcwMSz5Uyeo+dovivpCPuIawu32utRBQ
QOZN06zIZO+kA7wIu+ayvri2l/yAhRCtD/Kvds7xczLG6wz7chce9f6P7aB/SHZt
7Hw8lNKcClCbESEXr+oLCCxjeD95cdlGq+oADjoTPB5W4UwQoaE4jrCBIvZb3e3W
0FgG+DAKvhPVPaj26q6tTntw6HAgVwIDAQABAoICAEFWdSG01YQIMli/482EW6Z0
QJFe0GMN1I+WTWVmqm5EW7CnHkIthA4vJcMvHKPJiYTrFJndpfsBqAX7jeA1QoK2
l8KiPacCa9BOj/asZTApNHk5uGFNE44N/q8guhZHEXiVgoDtDhW2aRnTeQ+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XmCFOzboze5mcbdeWDFjd+H8or7YZ8RN8H7JkXt1OW3zGzTKhsE+SxtE
cKXlUawEFS4ForI4SXs8ANDo/ExjopknNZCR8NGchtfNS+0TksNiQB7B4yjMjB7Z
go5ExtlSxxbv1L+6Q1F/3MugF8Zpqw==
-----END PRIVATE KEY-----
@@ -118,7 +118,7 @@ class ConfigTests(unittest.TestCase):
def test_load_uses_arg_default_private_key_when_set(self) -> None:
home = Path("/home/test-user")
args = self.parse_args()
assets = Path(__file__).resolve().parents[1] / "assets"
assets = Path(__file__).resolve().parents[3] / "test" / "assets"
args.private_key = assets / "test_privateKey.pem"
with patch("pathlib.Path.home", return_value=home):
@@ -21,7 +21,7 @@ class EncryptionManagerTests(unittest.TestCase):
"""Verify encrypted bytes decrypt to the original content and hash."""
with TemporaryDirectory() as temporary_directory:
image_root = Path(temporary_directory)
assets = Path(__file__).resolve().parents[1] / "assets"
assets = Path(__file__).resolve().parents[3] / "test" / "assets"
args = self.parse_args("--conf-dir", str(image_root),
"--folder", str(image_root / "corrupt"),
"--private-key", str(assets / "test_private_key.pem"))
@@ -44,7 +44,7 @@ class EncryptionManagerTests(unittest.TestCase):
"""Verify decryption fails when given a different passphrase."""
with TemporaryDirectory() as temporary_directory, \
self.assertRaisesRegex(ValueError, "Invalid padding bytes"):
assets = Path(__file__).resolve().parents[1] / "assets"
assets = Path(__file__).resolve().parents[3] / "test" / "assets"
shutil.copytree(assets / "corrupt", Path(temporary_directory) / "corrupt")
image_root = Path(temporary_directory) / "corrupt"
@@ -141,7 +141,7 @@ class EncryptionManagerTests(unittest.TestCase):
with TemporaryDirectory() as temporary_directory, \
self.assertRaisesRegex(FileNotFoundError, "No naming table found"):
image_root = Path(temporary_directory)
assets = Path(__file__).resolve().parents[1] / "assets"
assets = Path(__file__).resolve().parents[3] / "test" / "assets"
args = self.parse_args("--conf-dir", str(image_root),
"--folder", str(image_root / "corrupt"),
"--private-key", str(assets / "test_private_key.pem"))
@@ -22,7 +22,7 @@ class ImageRepositoryTests(unittest.TestCase):
def test_scan_plaintext_folder_desktop(self) -> None:
with TemporaryDirectory() as temporary_directory:
image_root = Path(temporary_directory)
assets = Path(__file__).resolve().parents[1] / "assets"
assets = Path(__file__).resolve().parents[3] / "test" / "assets"
args = self.parse_args("--conf-dir", str(image_root),
"--folder", str(image_root / "Desktop1920x1080"),
"--private-key", str(assets / "test_private_key.pem"))
@@ -46,7 +46,7 @@ class ImageRepositoryTests(unittest.TestCase):
def test_scan_plaintext_folder_corrupt(self) -> None:
with TemporaryDirectory() as temporary_directory:
image_root = Path(temporary_directory)
assets = Path(__file__).resolve().parents[1] / "assets"
assets = Path(__file__).resolve().parents[3] / "test" / "assets"
args = self.parse_args("--conf-dir", str(image_root),
"--folder", str(image_root / "corrupt"),
"--private-key", str(assets / "test_private_key.pem"))
@@ -65,7 +65,7 @@ class ImageRepositoryTests(unittest.TestCase):
def test_scan_enc_folder_corrupt(self) -> None:
with TemporaryDirectory() as temporary_directory:
image_root = Path(temporary_directory)
assets = Path(__file__).resolve().parents[1] / "assets"
assets = Path(__file__).resolve().parents[3] / "test" / "assets"
args = self.parse_args("--conf-dir", str(image_root),
"--folder", str(image_root / "corrupt"),
"--private-key", str(assets / "test_private_key.pem"))
@@ -88,7 +88,7 @@ class ImageRepositoryTests(unittest.TestCase):
"""Verify conversion avoids overwrites and composites transparent pixels."""
with TemporaryDirectory() as temporary_directory:
image_root = Path(temporary_directory)
assets = Path(__file__).resolve().parents[1] / "assets"
assets = Path(__file__).resolve().parents[3] / "test" / "assets"
args = self.parse_args("--conf-dir", str(image_root),
"--folder", str(image_root / "corrupt"),
"--private-key", str(assets / "test_private_key.pem"))
@@ -114,7 +114,7 @@ class ImageRepositoryTests(unittest.TestCase):
def test_check_encryption_ignore_same_hash_shorter_name(self) -> None:
with TemporaryDirectory() as temporary_directory:
image_root = Path(temporary_directory)
assets = Path(__file__).resolve().parents[1] / "assets"
assets = Path(__file__).resolve().parents[3] / "test" / "assets"
args = self.parse_args("--conf-dir", str(image_root),
"--folder", str(image_root / "corrupt"),
"--private-key", str(assets / "test_private_key.pem"))
@@ -133,7 +133,7 @@ class ImageRepositoryTests(unittest.TestCase):
def test_check_encryption_ignore_same_hash_equal_length_name(self) -> None:
with TemporaryDirectory() as temporary_directory:
image_root = Path(temporary_directory)
assets = Path(__file__).resolve().parents[1] / "assets"
assets = Path(__file__).resolve().parents[3] / "test" / "assets"
args = self.parse_args("--conf-dir", str(image_root),
"--folder", str(image_root / "corrupt"),
"--private-key", str(assets / "test_private_key.pem"))
@@ -152,7 +152,7 @@ class ImageRepositoryTests(unittest.TestCase):
def test_check_encryption_replace_same_name(self) -> None:
with TemporaryDirectory() as temporary_directory:
image_root = Path(temporary_directory)
assets = Path(__file__).resolve().parents[1] / "assets"
assets = Path(__file__).resolve().parents[3] / "test" / "assets"
args = self.parse_args("--conf-dir", str(image_root),
"--folder", str(image_root / "corrupt"),
"--private-key", str(assets / "test_private_key.pem"))
@@ -185,7 +185,7 @@ class ImageRepositoryTests(unittest.TestCase):
def test_check_encryption_replace_same_hash_shorter_name(self) -> None:
with TemporaryDirectory() as temporary_directory:
image_root = Path(temporary_directory)
assets = Path(__file__).resolve().parents[1] / "assets"
assets = Path(__file__).resolve().parents[3] / "test" / "assets"
args = self.parse_args("--conf-dir", str(image_root),
"--folder", str(image_root / "corrupt"),
"--private-key", str(assets / "test_private_key.pem"))
@@ -211,7 +211,7 @@ class ImageRepositoryTests(unittest.TestCase):
def test_check_encryption_set_unique_name(self) -> None:
with TemporaryDirectory() as temporary_directory:
image_root = Path(temporary_directory)
assets = Path(__file__).resolve().parents[1] / "assets"
assets = Path(__file__).resolve().parents[3] / "test" / "assets"
args = self.parse_args("--conf-dir", str(image_root),
"--folder", str(image_root / "corrupt"),
"--private-key", str(assets / "test_private_key.pem"))
@@ -233,7 +233,7 @@ class ImageRepositoryTests(unittest.TestCase):
def test_decode_all(self) -> None:
with TemporaryDirectory() as temporary_directory:
image_root = Path(temporary_directory)
assets = Path(__file__).resolve().parents[1] / "assets"
assets = Path(__file__).resolve().parents[3] / "test" / "assets"
args = self.parse_args("--conf-dir", str(image_root),
"--folder", str(image_root / "corrupt"),
"--private-key", str(assets / "test_private_key.pem"))
@@ -249,7 +249,7 @@ class ImageRepositoryTests(unittest.TestCase):
def test_decode_argument(self) -> None:
with TemporaryDirectory() as temporary_directory:
image_root = Path(temporary_directory)
assets = Path(__file__).resolve().parents[1] / "assets"
assets = Path(__file__).resolve().parents[3] / "test" / "assets"
args = self.parse_args("--conf-dir", str(image_root),
"--folder", str(image_root / "corrupt"),
"--private-key", str(assets / "test_private_key.pem"))
@@ -267,7 +267,7 @@ class ImageRepositoryTests(unittest.TestCase):
def test_decode_argument_remove(self) -> None:
with TemporaryDirectory() as temporary_directory:
image_root = Path(temporary_directory)
assets = Path(__file__).resolve().parents[1] / "assets"
assets = Path(__file__).resolve().parents[3] / "test" / "assets"
args = self.parse_args("--conf-dir", str(image_root),
"--folder", str(image_root / "corrupt"),
"--private-key", str(assets / "test_private_key.pem"))
@@ -286,7 +286,7 @@ class ImageRepositoryTests(unittest.TestCase):
def test_check_consecutive_filenames(self) -> None:
with TemporaryDirectory() as temporary_directory:
image_root = Path(temporary_directory)
assets = Path(__file__).resolve().parents[1] / "assets"
assets = Path(__file__).resolve().parents[3] / "test" / "assets"
args = self.parse_args("--conf-dir", str(image_root),
"--folder", str(image_root / "Desktop1920x1080"),
"--private-key", str(assets / "test_private_key.pem"))
@@ -316,7 +316,7 @@ class ImageRepositoryEdgeCaseTests(unittest.TestCase):
"""Verify scanning ignores unsupported files and handles corrupt image files."""
with TemporaryDirectory() as temporary_directory:
image_root = Path(temporary_directory)
assets = Path(__file__).resolve().parents[1] / "assets"
assets = Path(__file__).resolve().parents[3] / "test" / "assets"
args = self.parse_args("--conf-dir", str(image_root),
"--folder", str(image_root / "Desktop1920x1080"),
"--private-key", str(assets / "test_private_key.pem"))
@@ -341,7 +341,7 @@ class ImageRepositoryEdgeCaseTests(unittest.TestCase):
"""Verify nested encrypted files are matched to their naming-table entries."""
with TemporaryDirectory() as temporary_directory:
image_root = Path(temporary_directory)
assets = Path(__file__).resolve().parents[1] / "assets"
assets = Path(__file__).resolve().parents[3] / "test" / "assets"
args = self.parse_args("--conf-dir", str(image_root),
"--folder", str(image_root / "corrupt"),
"--private-key", str(assets / "test_private_key.pem"))
@@ -359,7 +359,7 @@ class ImageRepositoryEdgeCaseTests(unittest.TestCase):
"""Verify plaintext JPEG payloads with an encrypted suffix are scanned safely."""
with TemporaryDirectory() as temporary_directory:
image_root = Path(temporary_directory)
assets = Path(__file__).resolve().parents[1] / "assets"
assets = Path(__file__).resolve().parents[3] / "test" / "assets"
args = self.parse_args("--conf-dir", str(image_root),
"--folder", str(image_root / "Desktop1920x1080"),
"--private-key", str(assets / "test_private_key.pem"))
@@ -405,7 +405,7 @@ class ImageRepositoryEdgeCaseTests(unittest.TestCase):
"""Verify encryption checking is a no-op for missing or empty input folders."""
with TemporaryDirectory() as temporary_directory:
image_root = Path(temporary_directory)
assets = Path(__file__).resolve().parents[1] / "assets"
assets = Path(__file__).resolve().parents[3] / "test" / "assets"
args = self.parse_args("--conf-dir", str(image_root),
"--folder", str(image_root / "corrupt"),
"--private-key", str(assets / "test_private_key.pem"))
@@ -423,7 +423,7 @@ class ImageRepositoryEdgeCaseTests(unittest.TestCase):
"""Verify failed encryption does not delete the original image."""
with TemporaryDirectory() as temporary_directory:
image_root = Path(temporary_directory)
assets = Path(__file__).resolve().parents[1] / "assets"
assets = Path(__file__).resolve().parents[3] / "test" / "assets"
args = self.parse_args("--conf-dir", str(image_root),
"--folder", str(image_root / "corrupt"),
"--private-key", str(assets / "test_private_key.pem"))
@@ -446,7 +446,7 @@ class ImageRepositoryEdgeCaseTests(unittest.TestCase):
with TemporaryDirectory() as temporary_directory, \
self.assertRaisesRegex(ValueError, "Hash mismatch for"):
image_root = Path(temporary_directory)
assets = Path(__file__).resolve().parents[1] / "assets"
assets = Path(__file__).resolve().parents[3] / "test" / "assets"
args = self.parse_args("--conf-dir", str(image_root),
"--folder", str(image_root / "corrupt"),
"--private-key", str(assets / "test_private_key.pem"))
@@ -469,7 +469,7 @@ class ImageRepositoryEdgeCaseTests(unittest.TestCase):
"""Verify decode-all behavior when an encrypted image has no table entry."""
with TemporaryDirectory() as temporary_directory:
image_root = Path(temporary_directory)
assets = Path(__file__).resolve().parents[1] / "assets"
assets = Path(__file__).resolve().parents[3] / "test" / "assets"
args = self.parse_args("--conf-dir", str(image_root),
"--folder", str(image_root / "corrupt"),
"--private-key", str(assets / "test_private_key.pem"))
@@ -484,7 +484,7 @@ class ImageRepositoryEdgeCaseTests(unittest.TestCase):
"""Verify decoded images do not overwrite existing files with the same name."""
with TemporaryDirectory() as temporary_directory:
image_root = Path(temporary_directory)
assets = Path(__file__).resolve().parents[1] / "assets"
assets = Path(__file__).resolve().parents[3] / "test" / "assets"
args = self.parse_args("--conf-dir", str(image_root),
"--folder", str(image_root / "corrupt"),
"--private-key", str(assets / "test_private_key.pem"))
@@ -509,7 +509,7 @@ class ImageRepositoryEdgeCaseTests(unittest.TestCase):
with TemporaryDirectory() as temporary_directory, \
self.assertRaisesRegex(ValueError, "Hash mismatch for"):
image_root = Path(temporary_directory)
assets = Path(__file__).resolve().parents[1] / "assets"
assets = Path(__file__).resolve().parents[3] / "test" / "assets"
args = self.parse_args("--conf-dir", str(image_root),
"--folder", str(image_root / "corrupt"),
"--private-key", str(assets / "test_private_key.pem"))
@@ -33,7 +33,7 @@ class MonitorManagerTests(unittest.TestCase):
def test_headless_mode_reads_correct_config(self) -> None:
"""Verify server dimensions load from the default monitor config."""
assets = Path(__file__).resolve().parents[1] / "assets"
assets = Path(__file__).resolve().parents[3] / "test" / "assets"
args = self.parse_args("--headless")
config = Config.load(args)
for file in (assets/"monitors").glob("monitors_[1-3]mon.xml"):
@@ -51,7 +51,7 @@ class MonitorManagerTests(unittest.TestCase):
def test_monitor_manager_uses_correct_config(self) -> None:
"""Verify incomplete, non-positive, or inconsistent dimensions are rejected."""
assets = Path(__file__).resolve().parents[1] / "assets"
assets = Path(__file__).resolve().parents[3] / "test" / "assets"
args = self.parse_args()
config = Config.load(args)
file = assets / "monitors" / "monitors_2mon.xml"
@@ -72,7 +72,7 @@ class MonitorManagerTests(unittest.TestCase):
def test_monitor_manager_rejects_config_with_too_many_monitors(self) -> None:
"""Verify incomplete, non-positive, or inconsistent dimensions are rejected."""
assets = Path(__file__).resolve().parents[1] / "assets"
assets = Path(__file__).resolve().parents[3] / "test" / "assets"
monitor_file = assets / "monitors" / "monitors_3mon.xml"
with TemporaryDirectory() as temporary_directory, \
self.assertRaisesRegex(RuntimeError, "No matching monitor configuration found"):
@@ -87,7 +87,7 @@ class MonitorManagerTests(unittest.TestCase):
def test_monitor_manager_uses_correct_config_with_multi_monitor_config_xml(self) -> None:
"""Verify incomplete, non-positive, or inconsistent dimensions are rejected."""
assets = Path(__file__).resolve().parents[1] / "assets"
assets = Path(__file__).resolve().parents[3] / "test" / "assets"
args = self.parse_args()
config = Config.load(args)
file = assets / "monitors" / "monitors_all.xml"
@@ -109,7 +109,7 @@ class MonitorManagerTests(unittest.TestCase):
def test_server_layout_rejects_missing_or_invalid_dimensions(self) -> None:
"""Verify incomplete, non-positive, or inconsistent dimensions are rejected."""
with TemporaryDirectory() as temporary_directory:
monitor_file = Path(__file__).resolve().parents[1] / "assets" / "monitors" / "monitors_2mon.xml"
monitor_file = Path(__file__).resolve().parents[3] / "test" / "assets" / "monitors" / "monitors_2mon.xml"
args = self.parse_args()
config = Config.load(args)
@@ -165,7 +165,7 @@ class MonitorManagerTests(unittest.TestCase):
def test_detect_single_connected_monitor_patched_monitor(self) -> None:
"""Verify one enabled connector reports its virtual 1920x1080 size."""
assets = Path(__file__).resolve().parents[1] / "assets"
assets = Path(__file__).resolve().parents[3] / "test" / "assets"
monitor_file = assets / "monitors" / "monitors_1mon.xml"
with TemporaryDirectory() as temporary_directory:
@@ -187,7 +187,7 @@ class MonitorManagerTests(unittest.TestCase):
def test_detect_multiple_monitors_from_xml_layout(self) -> None:
"""Verify two or more connected monitors map to their XML positions and sizes."""
assets = Path(__file__).resolve().parents[1] / "assets"
assets = Path(__file__).resolve().parents[3] / "test" / "assets"
monitor_file = assets / "monitors" / "monitors_3mon.xml"
with TemporaryDirectory() as temporary_directory:
@@ -251,7 +251,7 @@ class MonitorManagerTests(unittest.TestCase):
"""Verify no active displays raises an error."""
with TemporaryDirectory() as temporary_directory, \
self.assertRaisesRegex(RuntimeError, "No enabled monitors found"):
assets = Path(__file__).resolve().parents[1] / "assets"
assets = Path(__file__).resolve().parents[3] / "test" / "assets"
monitor_file = assets / "monitors" / "monitors_all.xml"
drm_root = Path(temporary_directory)
@@ -269,7 +269,7 @@ class MonitorManagerTests(unittest.TestCase):
def test_reject_unmatched_monitor_configuration(self) -> None:
"""Verify active displays without a matching XML layout raise an error."""
assets = Path(__file__).resolve().parents[1] / "assets"
assets = Path(__file__).resolve().parents[3] / "test" / "assets"
monitor_file = assets / "monitors" / "monitors_3mon.xml"
with TemporaryDirectory() as temporary_directory, \
self.assertRaisesRegex(RuntimeError, "No matching monitor configuration found"):
@@ -21,7 +21,7 @@ class ImageRepositoryTests(unittest.TestCase):
def test_build_wallpaper(self) -> None:
with TemporaryDirectory() as temporary_directory:
image_root = Path(temporary_directory)
assets = Path(__file__).resolve().parents[1] / "assets"
assets = Path(__file__).resolve().parents[3] / "test" / "assets"
args = self.parse_args("--conf-dir", str(image_root),
"--folder", str(image_root / "Desktop1920x1080"),
"--private-key", str(assets / "test_private_key.pem"))
@@ -36,7 +36,7 @@ class ImageRepositoryTests(unittest.TestCase):
def test_build_wallpaper_encoded(self) -> None:
with TemporaryDirectory() as temporary_directory:
image_root = Path(temporary_directory)
assets = Path(__file__).resolve().parents[1] / "assets"
assets = Path(__file__).resolve().parents[3] / "test" / "assets"
args = self.parse_args("--conf-dir", str(image_root),
"--folder", str(image_root / "corrupt"),
"--private-key", str(assets / "test_private_key.pem"))
@@ -52,7 +52,7 @@ class ImageRepositoryTests(unittest.TestCase):
def test_build_wallpaper_search(self) -> None:
with TemporaryDirectory() as temporary_directory:
image_root = Path(temporary_directory)
assets = Path(__file__).resolve().parents[1] / "assets"
assets = Path(__file__).resolve().parents[3] / "test" / "assets"
args = self.parse_args("--conf-dir", str(image_root),
"--folder", str(image_root / "Desktop1920x1080"),
"-s", "Hochschwab",
@@ -73,7 +73,7 @@ class ImageRepositoryTests(unittest.TestCase):
def test_build_wallpaper_decode_and_leave(self) -> None:
with TemporaryDirectory() as temporary_directory:
image_root = Path(temporary_directory)
assets = Path(__file__).resolve().parents[1] / "assets"
assets = Path(__file__).resolve().parents[3] / "test" / "assets"
args = self.parse_args("--conf-dir", str(image_root),
"--folder", str(image_root / "corrupt"),
"--private-key", str(assets / "test_private_key.pem"))
@@ -93,7 +93,7 @@ class ImageRepositoryTests(unittest.TestCase):
def test_build_wallpaper_left(self) -> None:
with TemporaryDirectory() as temporary_directory:
image_root = Path(temporary_directory)
assets = Path(__file__).resolve().parents[1] / "assets"
assets = Path(__file__).resolve().parents[3] / "test" / "assets"
img_folder = image_root / "Desktop1920x1080"
args = self.parse_args("--conf-dir", str(image_root),
"--folder", str(image_root / "Desktop1920x1080"),
@@ -119,7 +119,7 @@ class ImageRepositoryTests(unittest.TestCase):
def test_build_wallpaper_right(self) -> None:
with TemporaryDirectory() as temporary_directory:
image_root = Path(temporary_directory)
assets = Path(__file__).resolve().parents[1] / "assets"
assets = Path(__file__).resolve().parents[3] / "test" / "assets"
img_folder = image_root / "Desktop1920x1080"
args = self.parse_args("--conf-dir", str(image_root),
"--folder", str(image_root / "Desktop1920x1080"),
@@ -150,7 +150,7 @@ class WallpaperBuilderEdgeCaseTests(unittest.TestCase):
def test_build_rejects_empty_monitor_layouts(self) -> None:
with TemporaryDirectory() as temporary_directory:
image_root = Path(temporary_directory)
assets = Path(__file__).resolve().parents[1] / "assets"
assets = Path(__file__).resolve().parents[3] / "test" / "assets"
args = self.parse_args("--conf-dir", str(image_root),
"--folder", str(image_root / "Desktop1920x1080"),
"--private-key", str(assets / "test_private_key.pem"))
@@ -167,7 +167,7 @@ class WallpaperBuilderEdgeCaseTests(unittest.TestCase):
"""Verify building reports when exclusions leave no eligible image."""
with TemporaryDirectory() as temporary_directory:
image_root = Path(temporary_directory)
assets = Path(__file__).resolve().parents[1] / "assets"
assets = Path(__file__).resolve().parents[3] / "test" / "assets"
args = self.parse_args("--conf-dir", str(image_root),
"--folder", str(image_root / "Desktop1920x1080"),
"-s", "Tal",
@@ -186,7 +186,7 @@ class WallpaperBuilderEdgeCaseTests(unittest.TestCase):
"""Verify building reports when exclusions leave no eligible image."""
with TemporaryDirectory() as temporary_directory:
image_root = Path(temporary_directory)
assets = Path(__file__).resolve().parents[1] / "assets"
assets = Path(__file__).resolve().parents[3] / "test" / "assets"
args = self.parse_args("--conf-dir", str(image_root),
"--folder", str(image_root / "Desktop1920x1080"),
"-s", "Tal", "See",
@@ -206,7 +206,7 @@ class WallpaperBuilderEdgeCaseTests(unittest.TestCase):
"""Verify separate search terms are assigned to their corresponding monitors."""
with TemporaryDirectory() as temporary_directory:
image_root = Path(temporary_directory)
assets = Path(__file__).resolve().parents[1] / "assets"
assets = Path(__file__).resolve().parents[3] / "test" / "assets"
args = self.parse_args("--conf-dir", str(image_root),
"--folder", str(image_root / "Desktop1920x1080"),
"--search-mon", "See", "Meer",
@@ -227,7 +227,7 @@ class WallpaperBuilderEdgeCaseTests(unittest.TestCase):
"""Verify building reports when exclusions leave no eligible image."""
with TemporaryDirectory() as temporary_directory:
image_root = Path(temporary_directory)
assets = Path(__file__).resolve().parents[1] / "assets"
assets = Path(__file__).resolve().parents[3] / "test" / "assets"
args = self.parse_args("--conf-dir", str(image_root),
"--folder", str(image_root / "Desktop1920x1080"),
"--exclude", "Berg",
@@ -249,7 +249,7 @@ class WallpaperBuilderEdgeCaseTests(unittest.TestCase):
"""Verify building reports when exclusions leave no eligible image."""
with TemporaryDirectory() as temporary_directory:
image_root = Path(temporary_directory)
assets = Path(__file__).resolve().parents[1] / "assets"
assets = Path(__file__).resolve().parents[3] / "test" / "assets"
args = self.parse_args("--conf-dir", str(image_root),
"--folder", str(image_root / "Desktop1920x1080"),
"--search", "gÖller",
@@ -267,7 +267,7 @@ class WallpaperBuilderEdgeCaseTests(unittest.TestCase):
"""Verify a custom output path is created along with missing parent folders."""
with TemporaryDirectory() as temporary_directory:
image_root = Path(temporary_directory)
assets = Path(__file__).resolve().parents[1] / "assets"
assets = Path(__file__).resolve().parents[3] / "test" / "assets"
args = self.parse_args("--conf-dir", str(image_root / "wallpaper" / "custom"),
"--folder", str(image_root / "Desktop1920x1080"),
"--private-key", str(assets / "test_private_key.pem"))
@@ -283,7 +283,7 @@ class WallpaperBuilderEdgeCaseTests(unittest.TestCase):
"""Verify multiple monitor images are placed in one canvas with expected dimensions."""
with TemporaryDirectory() as temporary_directory:
image_root = Path(temporary_directory)
assets = Path(__file__).resolve().parents[1] / "assets"
assets = Path(__file__).resolve().parents[3] / "test" / "assets"
args = self.parse_args("--conf-dir", str(image_root),
"--folder", str(image_root / "Desktop1920x1080"),
"--private-key", str(assets / "test_private_key.pem"))
@@ -302,7 +302,7 @@ class WallpaperBuilderEdgeCaseTests(unittest.TestCase):
"""Verify unreadable or undecryptable selected images produce an explicit error."""
with TemporaryDirectory() as temporary_directory:
image_root = Path(temporary_directory)
assets = Path(__file__).resolve().parents[1] / "assets"
assets = Path(__file__).resolve().parents[3] / "test" / "assets"
args = self.parse_args("--conf-dir", str(image_root),
"--folder", str(image_root / "Desktop1920x1080"),
"--private-key", str(assets / "test_private_key.pem"))
@@ -325,7 +325,7 @@ class WallpaperBuilderEdgeCaseTests(unittest.TestCase):
"""Verify unreadable or undecryptable selected images produce an explicit error."""
with TemporaryDirectory() as temporary_directory:
image_root = Path(temporary_directory)
assets = Path(__file__).resolve().parents[1] / "assets"
assets = Path(__file__).resolve().parents[3] / "test" / "assets"
args = self.parse_args("--conf-dir", str(image_root),
"--folder", str(image_root / "Desktop1920x1080"),
"--private-key", str(assets / "test_private_key.pem"))
@@ -350,7 +350,7 @@ class WallpaperBuilderEdgeCaseTests(unittest.TestCase):
"""Verify unreadable or undecryptable selected images produce an explicit error."""
with TemporaryDirectory() as temporary_directory:
image_root = Path(temporary_directory)
assets = Path(__file__).resolve().parents[1] / "assets"
assets = Path(__file__).resolve().parents[3] / "test" / "assets"
args = self.parse_args("--conf-dir", str(image_root),
"--folder", str(image_root / "Desktop1920x1080"),
"--private-key", str(assets / "test_private_key.pem"))