Skip to content

Commit

Permalink
チャレンジ
Browse files Browse the repository at this point in the history
  • Loading branch information
voluntas committed Sep 3, 2024
1 parent d365099 commit 118476c
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions test/momo.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
# プラットフォームに応じたリリースディレクトリの設定
RELEASE_DIR = Path(__file__).resolve().parent.parent / Path("_build/")

# TODO: 環境変数で CI か Local で見に行くパスを変えるようにする
if platform.system() == "Darwin":
if platform.machine() == "arm64":
RELEASE_DIR = RELEASE_DIR / "macos_arm64/release/momo"
Expand All @@ -21,8 +22,9 @@


class Momo:
def __init__(self, port=5000):
def __init__(self, mode="test", port=5000):
self.executable = RELEASE_DIR / "momo"
self.mode = mode
self.port = port
self.process = None
self.thread = None
Expand All @@ -35,11 +37,11 @@ def __exit__(self, exc_type, exc_val, exc_tb):
self.stop()

def run_app(self):
# test モードでポートだけ指定してあげる
args = [
str(self.executable),
"--no-audio-device",
"test",
"--no-video-device",
self.mode,
"--port",
str(self.port),
]
Expand Down

0 comments on commit 118476c

Please sign in to comment.