Skip to content

Commit e9fbd65

Browse files
committed
try fix broken tests
1 parent 968257b commit e9fbd65

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

tests/test_dataclasses.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
from . import system_cmd
77
from pathlib import Path
88

9-
system_cmd = str(system_cmd.relative_to(Path(os.getcwd())))
9+
system_cmd = ("python", str(system_cmd.relative_to(Path(os.getcwd()))))
1010

1111

1212
@override_settings(
@@ -59,11 +59,11 @@
5959
RoutineCommand(command=("track", "1"), priority=4),
6060
RoutineCommand(command=("track", "5"), priority=6, switches=("demo",)),
6161
SystemCommand(
62-
command=(str(system_cmd), "sys 1"),
62+
command=(*system_cmd, "sys 1"),
6363
priority=7,
6464
),
6565
SystemCommand(
66-
command=(str(system_cmd), "sys 2"),
66+
command=(*system_cmd, "sys 2"),
6767
priority=8,
6868
),
6969
],
@@ -187,11 +187,11 @@ def test_settings_format(self):
187187
command=("track", "5"), priority=6, switches=("demo",)
188188
),
189189
SystemCommand(
190-
command=(str(system_cmd), "sys 1"),
190+
command=(*system_cmd, "sys 1"),
191191
priority=7,
192192
),
193193
SystemCommand(
194-
command=(str(system_cmd), "sys 2"),
194+
command=(*system_cmd, "sys 2"),
195195
priority=8,
196196
),
197197
],

tests/test_dict.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
from .test_core import CoreTests
77
from . import system_cmd
88

9-
system_cmd = str(system_cmd.relative_to(Path(os.getcwd())))
9+
system_cmd = ("python", str(system_cmd.relative_to(Path(os.getcwd()))))
1010

1111

1212
@override_settings(
@@ -57,12 +57,12 @@
5757
{"command": ("track", "1"), "priority": 4},
5858
{"command": ("track", "5"), "priority": 6, "switches": ("demo",)},
5959
{
60-
"command": (system_cmd, "sys 2"),
60+
"command": (*system_cmd, "sys 2"),
6161
"priority": 8,
6262
"kind": "system",
6363
},
6464
{
65-
"command": (system_cmd, "sys 1"),
65+
"command": (*system_cmd, "sys 1"),
6666
"priority": 7,
6767
"kind": "system",
6868
},
@@ -263,12 +263,12 @@ def test_settings_format(self):
263263
"switches": ("demo",),
264264
},
265265
{
266-
"command": (system_cmd, "sys 2"),
266+
"command": (*system_cmd, "sys 2"),
267267
"priority": 8,
268268
"kind": "system",
269269
},
270270
{
271-
"command": (system_cmd, "sys 1"),
271+
"command": (*system_cmd, "sys 1"),
272272
"priority": 7,
273273
"kind": "system",
274274
},

0 commit comments

Comments
 (0)