From b6f111977d56c8eacc9ea6acc05705f70e94aa30 Mon Sep 17 00:00:00 2001 From: Julian Lechner Date: Fri, 18 Sep 2026 11:59:05 +0200 Subject: [PATCH] test(update): stage command fixture --- scripts/tests/test-quick-update.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/tests/test-quick-update.py b/scripts/tests/test-quick-update.py index ab45493..634c3c4 100644 --- a/scripts/tests/test-quick-update.py +++ b/scripts/tests/test-quick-update.py @@ -114,7 +114,7 @@ class SelectionTests(unittest.TestCase): original = self.path.read_bytes() source = (ROOT / 'scripts/commands/update.ps1').read_text(encoding='utf-8-sig') source = source.replace("[Environment]::GetFolderPath('UserProfile')", '$env:TEST_SELECTION_HOME') - with tempfile.NamedTemporaryFile(mode='w', suffix='.tmp.ps1', dir=ROOT / 'scripts', + with tempfile.NamedTemporaryFile(mode='w', suffix='.tmp.ps1', dir=ROOT / 'scripts/commands', encoding='utf-8', delete=False) as stream: stream.write(source) entry = Path(stream.name)