Skip to content

Commit

Permalink
fixed broken DESKTOP test
Browse files Browse the repository at this point in the history
  • Loading branch information
saleguas committed Apr 11, 2024
1 parent dab2b85 commit 963a605
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"python.testing.pytestArgs": [
"tests"
],
"python.testing.unittestEnabled": false,
"python.testing.pytestEnabled": true
}
2 changes: 1 addition & 1 deletion tests/test_windows.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ def test_context_menu_nested(
"DESKTOP",
{"python": foo},
"Software\\Classes\\DesktopBackground\\shell",
'''"{}" -c "import sys; import os; sys.path.insert(0, '{}'); import test_windows; test_windows.foo([os.getcwd()],'')"'''.format(
'''"{}" -c "import sys; sys.path.insert(0, '{}'); import test_windows; test_windows.foo([' '.join(sys.argv[1:]) ],'')" "%1"'''.format(
sys.executable, Path(__file__).parent.as_posix()
),
),
Expand Down

0 comments on commit 963a605

Please sign in to comment.