mirror of
https://github.com/gradio-app/gradio.git
synced 2025-01-24 10:54:04 +08:00
more fixes
This commit is contained in:
parent
b03581c684
commit
d3b075c5b3
@ -21,10 +21,9 @@ jobs:
|
||||
- run:
|
||||
command: |
|
||||
. venv/bin/activate
|
||||
cd test
|
||||
python3 -m unittest
|
||||
- store_artifacts:
|
||||
path: test-reports/
|
||||
destination: tr1
|
||||
- store_test_results:
|
||||
path: test-reports/
|
||||
path: test-reports/
|
@ -11,7 +11,7 @@ class TestSketchpad(unittest.TestCase):
|
||||
def test_path_exists(self):
|
||||
inp = inputs.Sketchpad()
|
||||
path = inputs.BASE_INPUT_INTERFACE_JS_PATH.format(inp.get_name())
|
||||
self.assertTrue(os.path.exists(os.path.join('..', PACKAGE_NAME, path)))
|
||||
self.assertTrue(os.path.exists(os.path.join(PACKAGE_NAME, path)))
|
||||
|
||||
def test_preprocessing(self):
|
||||
inp = inputs.Sketchpad()
|
||||
@ -23,7 +23,7 @@ class TestWebcam(unittest.TestCase):
|
||||
def test_path_exists(self):
|
||||
inp = inputs.Webcam()
|
||||
path = inputs.BASE_INPUT_INTERFACE_JS_PATH.format(inp.get_name())
|
||||
self.assertFalse(os.path.exists(os.path.join('..', PACKAGE_NAME, path))) # Note implemented yet.
|
||||
self.assertFalse(os.path.exists(os.path.join(PACKAGE_NAME, path))) # Note implemented yet.
|
||||
|
||||
def test_preprocessing(self):
|
||||
inp = inputs.Webcam()
|
||||
@ -35,7 +35,7 @@ class TestTextbox(unittest.TestCase):
|
||||
def test_path_exists(self):
|
||||
inp = inputs.Textbox()
|
||||
path = inputs.BASE_INPUT_INTERFACE_JS_PATH.format(inp.get_name())
|
||||
self.assertTrue(os.path.exists(os.path.join('..', PACKAGE_NAME, path)))
|
||||
self.assertTrue(os.path.exists(os.path.join(PACKAGE_NAME, path)))
|
||||
|
||||
def test_preprocessing(self):
|
||||
inp = inputs.Textbox()
|
||||
@ -47,7 +47,7 @@ class TestImageUpload(unittest.TestCase):
|
||||
def test_path_exists(self):
|
||||
inp = inputs.ImageUpload()
|
||||
path = inputs.BASE_INPUT_INTERFACE_JS_PATH.format(inp.get_name())
|
||||
self.assertTrue(os.path.exists(os.path.join('..', PACKAGE_NAME, path)))
|
||||
self.assertTrue(os.path.exists(os.path.join(PACKAGE_NAME, path)))
|
||||
|
||||
def test_preprocessing(self):
|
||||
inp = inputs.ImageUpload()
|
||||
|
@ -12,7 +12,7 @@ class TestLabel(unittest.TestCase):
|
||||
def test_path_exists(self):
|
||||
out = outputs.Label()
|
||||
path = outputs.BASE_OUTPUT_INTERFACE_JS_PATH.format(out.get_name())
|
||||
self.assertTrue(os.path.exists(os.path.join('..', PACKAGE_NAME, path)))
|
||||
self.assertTrue(os.path.exists(os.path.join(PACKAGE_NAME, path)))
|
||||
|
||||
def test_postprocessing_string(self):
|
||||
string = 'happy'
|
||||
@ -51,7 +51,7 @@ class TestTextbox(unittest.TestCase):
|
||||
def test_path_exists(self):
|
||||
out = outputs.Textbox()
|
||||
path = outputs.BASE_OUTPUT_INTERFACE_JS_PATH.format(out.get_name())
|
||||
self.assertTrue(os.path.exists(os.path.join('..', PACKAGE_NAME, path)))
|
||||
self.assertTrue(os.path.exists(os.path.join(PACKAGE_NAME, path)))
|
||||
|
||||
def test_postprocessing(self):
|
||||
string = 'happy'
|
||||
@ -64,7 +64,7 @@ class TestImage(unittest.TestCase):
|
||||
def test_path_exists(self):
|
||||
out = outputs.Image()
|
||||
path = outputs.BASE_OUTPUT_INTERFACE_JS_PATH.format(out.get_name())
|
||||
self.assertTrue(os.path.exists(os.path.join('..', PACKAGE_NAME, path)))
|
||||
self.assertTrue(os.path.exists(os.path.join(PACKAGE_NAME, path)))
|
||||
|
||||
def test_postprocessing(self):
|
||||
string = BASE64_IMG
|
||||
|
Loading…
Reference in New Issue
Block a user