yan chuanli %!s(int64=2) %!d(string=hai) anos
pai
achega
8e169b54dd
Modificáronse 2 ficheiros con 8 adicións e 1 borrados
  1. 7 1
      TestAllOcr/config.py
  2. 1 0
      TestAllOcr/test_interface.py

+ 7 - 1
TestAllOcr/config.py

@@ -28,10 +28,16 @@ idc_header = {
     'Authorization': 'Bearer 4e00c444-620b-4d3c-85f4-777e64276f0e'
 }
 
+blfe_header = {
+    'Content-Type': 'application/json',
+    'Authorization': 'Bearer 8ae1e5f1-1337-4f22-8d46-ff4c110d68fd'
+}
+
 TOKEN = {
     'test': test_header,
     'sb': sb_header,
-    'idc': idc_header
+    'idc': idc_header,
+    'blfe': blfe_header
 }
 
 def send_request(image_path, suffix, URL, TOKEN):

+ 1 - 0
TestAllOcr/test_interface.py

@@ -47,6 +47,7 @@ class TestOcr(unittest.TestCase):
 
 # 测试营业执照
 URL = config.URL['blfe']
+token1 = config.TOKEN['blfe']
 class TestBlfeOcr(unittest.TestCase):
     def _helper(self, image_path, suffix):
         root = Path(__file__).parent