Skip to content

Commit

Permalink
fix: windows issue attempt 3
Browse files Browse the repository at this point in the history
  • Loading branch information
raaymax committed Jul 23, 2024
1 parent 1c95d0b commit 96d5a21
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/backend/test_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import subprocess
import threading
import time
import platform

import requests
from click.testing import CliRunner
Expand Down Expand Up @@ -49,7 +50,7 @@ def test_run():
try:
with runner.isolated_filesystem():
runner.invoke(main, ['create', './my_app', '--template', 'hello'])
p = subprocess.Popen(["writer run my_app --port 5001"], shell=True)
p = subprocess.Popen(["writer", "run", "my_app", "--port", "5001"], shell=(platform.system() == 'Windows'))

retry = 0
success = False
Expand Down Expand Up @@ -78,7 +79,7 @@ def test_edit():
try:
with runner.isolated_filesystem():
runner.invoke(main, ['create', './my_app', '--template', 'hello'])
p = subprocess.Popen(["writer edit my_app --port 5002"], shell=True)
p = subprocess.Popen(["writer", "edit", "my_app", "--port", "5002"], shell=(platform.system() == 'Windows'))

retry = 0
success = False
Expand Down

0 comments on commit 96d5a21

Please sign in to comment.