yan chuanli 2 years ago
parent
commit
8e169b54dd
2 changed files with 8 additions and 1 deletions
  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'
     'Authorization': 'Bearer 4e00c444-620b-4d3c-85f4-777e64276f0e'
 }
 }
 
 
+blfe_header = {
+    'Content-Type': 'application/json',
+    'Authorization': 'Bearer 8ae1e5f1-1337-4f22-8d46-ff4c110d68fd'
+}
+
 TOKEN = {
 TOKEN = {
     'test': test_header,
     'test': test_header,
     'sb': sb_header,
     'sb': sb_header,
-    'idc': idc_header
+    'idc': idc_header,
+    'blfe': blfe_header
 }
 }
 
 
 def send_request(image_path, suffix, URL, TOKEN):
 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']
 URL = config.URL['blfe']
+token1 = config.TOKEN['blfe']
 class TestBlfeOcr(unittest.TestCase):
 class TestBlfeOcr(unittest.TestCase):
     def _helper(self, image_path, suffix):
     def _helper(self, image_path, suffix):
         root = Path(__file__).parent
         root = Path(__file__).parent