Selaa lähdekoodia

update others

sxkj 2 vuotta sitten
vanhempi
commit
94c38ab9f0

+ 0 - 0
images/false/others/05-180.jpg → images/false/miss_address/06-180.jpg


+ 0 - 0
images/false/others/05-90.jpg → images/false/miss_address/06-90.jpg


+ 0 - 0
images/false/others/04.jpg → images/false/miss_nation/03.jpg


+ 0 - 0
images/false/others/08.jpg → images/false/miss_nation/08.jpg


+ 0 - 0
images/false/others/09.jpg → images/false/miss_nation/09.jpg


+ 0 - 0
images/false/others/10.jpg → images/false/miss_nation/10.jpg


+ 0 - 0
images/false/others/11.jpg → images/false/miss_nation/11.jpg


BIN
images/false/others/03.jpg


+ 8 - 1
testing/address_test.py

@@ -6,7 +6,7 @@ import requests
 
 
 
-url = 'http://192.168.199.107:18080'
+url = 'http://192.168.199.208:18081'
 
 
 def send_request(image_path, image_type):
@@ -44,6 +44,13 @@ class TestIdCardAddress(unittest.TestCase):
         image_path = '../images/false/miss_address/05.jpg'
         self._helper(image_path, '西安市长安区樱花一路666号8栋1单元23层2号')
 
+    def test_06_180(self):
+        image_path = '../images/false/miss_address/06-180.jpg'
+        self._helper(image_path, '山东省青岛市市北区港联路2号92196户')
+
+    def test_06_90(self):
+        image_path = '../images/false/miss_address/06-90.jpg'
+        self._helper(image_path, '山东省青岛市市北区港联路2号92196户')
 
 if __name__ == '__main__':
     unittest.main()

+ 1 - 1
testing/id_test.py

@@ -6,7 +6,7 @@ import requests
 
 
 
-url = 'http://192.168.199.107:18080'
+url = 'http://192.168.199.208:18081'
 
 
 def send_request(image_path, image_type):

+ 1 - 1
testing/name_test.py

@@ -6,7 +6,7 @@ import requests
 
 
 
-url = 'http://192.168.199.107:18080'
+url = 'http://192.168.199.208:18081'
 
 
 def send_request(image_path, image_type):

+ 22 - 2
testing/nation_test.py

@@ -6,7 +6,7 @@ import requests
 
 
 
-url = 'http://192.168.199.107:18080'
+url = 'http://192.168.199.208:18081'
 
 
 def send_request(image_path, image_type):
@@ -26,4 +26,24 @@ class TestIdCardAddress(unittest.TestCase):
 
     def test_01(self):
         image_path = '../images/false/miss_nation/01.png'
-        self._helper(image_path, '汉')
+        self._helper(image_path, '汉')
+
+    def test_03(self):
+        image_path = '../images/false/miss_nation/03.jpg'
+        self._helper(image_path, '汉')
+
+    def test_08(self):
+        image_path = '../images/false/miss_nation/08.jpg'
+        self._helper(image_path, '汉')
+
+    def test_09(self):
+        image_path = '../images/false/miss_nation/09.jpg'
+        self._helper(image_path, '汉')
+
+    def test_10(self):
+        image_path = '../images/false/miss_nation/10.jpg'
+        self._helper(image_path, '汉')
+
+    def test_11(self):
+        image_path = '../images/false/miss_nation/11.jpg'
+        self._helper(image_path, '回')

+ 1 - 1
testing/orient_test.py

@@ -6,7 +6,7 @@ import requests
 
 
 
-url = 'http://192.168.199.107:18080'
+url = 'http://192.168.199.208:18081'
 
 
 def send_request(image_path, image_type):

+ 0 - 28
testing/other_test.py

@@ -22,18 +22,6 @@ class TestIdCardAddress(unittest.TestCase):
         r = send_request(image_path, 0)
         self.assertEqual(r['status'], '000', f'{image_path}status case error')
 
-    def test_04(self):
-        image_path = '../images/false/others/04.jpg'
-        self._helper(image_path)
-
-    def test_05_90(self):
-        image_path = '../images/false/others/05-90.jpg'
-        self._helper(image_path)
-
-    def test_05_180(self):
-        image_path = '../images/false/others/05-180.jpg'
-        self._helper(image_path)
-
     # 难
     def test_06(self):
         image_path = '../images/false/others/06.jpg'
@@ -44,22 +32,6 @@ class TestIdCardAddress(unittest.TestCase):
         image_path = '../images/false/others/07.jpg'
         self._helper(image_path)
 
-    def test_08(self):
-        image_path = '../images/false/others/08.jpg'
-        self._helper(image_path)
-
-    def test_09(self):
-        image_path = '../images/false/others/09.jpg'
-        self._helper(image_path)
-
-    def test_10(self):
-        image_path = '../images/false/others/10.jpg'
-        self._helper(image_path)
-
-    def test_11(self):
-        image_path = '../images/false/others/11.jpg'
-        self._helper(image_path)
-
     # 北京市宣武区cpca错误
     def test_cpca(self):
         image_path = '../images/false/others/cpca.png'

+ 1 - 0
testing/true_test.py

@@ -89,5 +89,6 @@ class TestIdCardAddress(unittest.TestCase):
         self._helper(image_path, '000', 0, '曾令权', '432524199306221414', '汉', '男', '1993年06月22日', '湖南省新化县维山乡官庄村陈家冲组21号')
 
 
+
 if __name__ == '__main__':
     unittest.main()