1234567891011121314151617181920 |
- import unittest
- from pathlib import Path
- from testing.utils import *
- class TestIdCardAddress(unittest.TestCase):
- def _helper(self, image_path, id):
- root = Path(__file__).parent
- image_path = str(root / image_path)
- r = send_request(image_path, '0')
- self.assertEqual(id, r['result']['id']['text'], f'{image_path} id case error')
- # def test_01(self):
- # image_path = '../images/false/miss_id/01.jpg'
- # self._helper(image_path, '52213019970701363X')
- if __name__ == '__main__':
- unittest.main()
|