yan chuanli 2 years ago
parent
commit
8d2d13728f
1 changed files with 0 additions and 27 deletions
  1. 0 27
      TestAllOcr/test_interface.py

+ 0 - 27
TestAllOcr/test_interface.py

@@ -11,33 +11,6 @@ envl = 'DX_test'
 url = config.URL[envl]
 token = config.TOKEN[envl]
 
-    def _helper(self, image_path, suffix):
-        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):
-        image_path = './image/bankcard.jpg'
-        suffix = '/yhksb/bankcard'
-        self._helper(image_path, suffix)
-
-    def test_idcard(self):
-        image_path = './image/idcard.jpg'
-        suffix = '/sfzsb/idcard'
-        self._helper(image_path, suffix)
-
-    def test_regbook(self):
-        image_path = './image/regbook.jpg'
-        suffix = '/hkbsb/regbook'
-        self._helper(image_path, suffix)
-
-    def test_schoolcert(self):
-        image_path = './image/schoolcert.jpg'
-        suffix = '/xxw/schoolcert'
-        self._helper(image_path, suffix)
-
 class TestOcr(unittest.TestCase):
 
     def _helper(self, image_path, suffix):