Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: gradio's ValueError about fetching extensions files #8492

Merged
merged 6 commits into from
Mar 12, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
test/server_poll.py: use absolute path for test
test/server_poll.py: fix absolute path
  • Loading branch information
arenekosreal committed Mar 11, 2023
commit 9abe2f5e74f02d4c8e47d2d4e03464179e9f0aa2
6 changes: 4 additions & 2 deletions test/server_poll.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import unittest
import requests
import time
import os
from modules.paths import script_path


def run_tests(proc, test_dir):
Expand All @@ -15,8 +17,8 @@ def run_tests(proc, test_dir):
break
if proc.poll() is None:
if test_dir is None:
test_dir = "test"
suite = unittest.TestLoader().discover(test_dir, pattern="*_test.py", top_level_dir="test")
test_dir = os.path.join(script_path, "test")
suite = unittest.TestLoader().discover(test_dir, pattern="*_test.py", top_level_dir=test_dir)
result = unittest.TextTestRunner(verbosity=2).run(suite)
return len(result.failures) + len(result.errors)
else:
Expand Down