|
@@ -7,7 +7,7 @@ from config import send_request
|
|
|
image_path = 'image'
|
|
|
|
|
|
|
|
|
-envl = 'DX_sb'
|
|
|
+envl = 'DX_test'
|
|
|
url = config.URL[envl]
|
|
|
token = config.TOKEN[envl]
|
|
|
|
|
@@ -18,6 +18,7 @@ class TestSbOcr(unittest.TestCase):
|
|
|
root = Path(__file__).parent
|
|
|
image_path = str(root / image_path)
|
|
|
r = send_request(image_path, suffix, url, token)
|
|
|
+ print(r)
|
|
|
self.assertIn('result', r, f'{suffix} test error')
|
|
|
|
|
|
def test_bank(self):
|
|
@@ -57,6 +58,7 @@ class TestOcr(unittest.TestCase):
|
|
|
root = Path(__file__).parent
|
|
|
image_path = str(root / image_path)
|
|
|
r = send_request(image_path, suffix, url, token)
|
|
|
+ print(r)
|
|
|
self.assertIn('result', r, f'{suffix} test error')
|
|
|
|
|
|
def test_bank(self):
|