Fix: test cases

This commit is contained in:
dx-tan 2024-03-18 14:31:23 +07:00
parent 1a05ea7afa
commit 06fe4de8d2
13 changed files with 42 additions and 9 deletions

1
.gitignore vendored
View File

@ -43,3 +43,4 @@ cope2n-api/reviewed/date.xlsx
cope2n-api/reviewed/retailer.xlsx cope2n-api/reviewed/retailer.xlsx
/scripts/* /scripts/*
scripts/crawl_database.py scripts/crawl_database.py
redundant_models/

View File

@ -15,7 +15,7 @@ RUN pip install mmcv==1.6.0 -f https://download.openmmlab.com/mmcv/dst/cu116/tor
RUN ln -s /opt/conda/lib/python3.10/site-packages/torch/lib/libcudnn.so.8 /usr/lib/libcudnn.so && \ RUN ln -s /opt/conda/lib/python3.10/site-packages/torch/lib/libcudnn.so.8 /usr/lib/libcudnn.so && \
ln -s /opt/conda/lib/libcublas.so /usr/lib/libcublas.so ln -s /opt/conda/lib/libcublas.so /usr/lib/libcublas.so
# RUN python -m pip install paddlepaddle-gpu==2.4.2.post116 -f https://www.paddlepaddle.org.cn/whl/linux/mkl/avx/stable.html --no-cache-dir RUN python -m pip install paddlepaddle-gpu==2.4.2.post116 -f https://www.paddlepaddle.org.cn/whl/linux/mkl/avx/stable.html --no-cache-dir
RUN pip install fastdeploy-gpu-python==1.0.7 -f https://www.paddlepaddle.org.cn/whl/fastdeploy.html --no-cache-dir RUN pip install fastdeploy-gpu-python==1.0.7 -f https://www.paddlepaddle.org.cn/whl/fastdeploy.html --no-cache-dir

@ -1 +1 @@
Subproject commit bae5f732e12c5d5307b3ce14a98fa198ea49e372 Subproject commit 20128037dbfca217fa3d3ca4551cc7f8ae8a190e

@ -1 +1 @@
Subproject commit 671d7917c657ad185a06772e0b707b45fe59788a Subproject commit 20128037dbfca217fa3d3ca4551cc7f8ae8a190e

View File

@ -89,12 +89,12 @@ services:
depends_on: depends_on:
db-sbt: db-sbt:
condition: service_started condition: service_started
# command: sh -c "chmod -R 777 /app; sleep 5; python manage.py collectstatic --no-input && command: sh -c "chmod -R 777 /app; sleep 5; python manage.py collectstatic --no-input &&
# python manage.py makemigrations && python manage.py makemigrations &&
# python manage.py migrate && python manage.py migrate &&
# python manage.py compilemessages && python manage.py compilemessages &&
# gunicorn fwd.asgi:application -k uvicorn.workers.UvicornWorker --timeout 300 -b 0.0.0.0:9000" # pre-makemigrations on prod gunicorn fwd.asgi:application -k uvicorn.workers.UvicornWorker --timeout 300 -b 0.0.0.0:9000" # pre-makemigrations on prod
command: bash -c "tail -f > /dev/null" # command: bash -c "tail -f > /dev/null"
minio: minio:
image: minio/minio image: minio/minio

View File

@ -17,6 +17,10 @@
"value": [ "value": [
"357822611219904" "357822611219904"
] ]
},
{
"label": "invoice_no",
"value": null
} }
], ],
"doc_type": "sbt_document", "doc_type": "sbt_document",

View File

@ -17,6 +17,10 @@
"value": [ "value": [
"RFAW2022FED" "RFAW2022FED"
] ]
},
{
"label": "invoice_no",
"value": null
} }
], ],
"doc_type": "sbt_document", "doc_type": "sbt_document",

View File

@ -19,6 +19,10 @@
"value": [ "value": [
"357822611219904" "357822611219904"
] ]
},
{
"label": "invoice_no",
"value": null
} }
], ],
"doc_type": "sbt_document", "doc_type": "sbt_document",

View File

@ -20,6 +20,10 @@
"357822611219904", "357822611219904",
"RFAW2022FED" "RFAW2022FED"
] ]
},
{
"label": "invoice_no",
"value": null
} }
], ],
"doc_type": "sbt_document", "doc_type": "sbt_document",

View File

@ -21,6 +21,10 @@
"RFAW2022FED", "RFAW2022FED",
"5AWH14MT400396N" "5AWH14MT400396N"
] ]
},
{
"label": "invoice_no",
"value": null
} }
], ],
"doc_type": "sbt_document", "doc_type": "sbt_document",

View File

@ -22,6 +22,10 @@
"5AWH14MT400396N", "5AWH14MT400396N",
"0HU33NIW200044K" "0HU33NIW200044K"
] ]
},
{
"label": "invoice_no",
"value": null
} }
], ],
"doc_type": "sbt_document", "doc_type": "sbt_document",

View File

@ -23,6 +23,10 @@
"0HU33NIW200044K", "0HU33NIW200044K",
"0GJG4DBW200318X" "0GJG4DBW200318X"
] ]
},
{
"label": "invoice_no",
"value": null
} }
], ],
"doc_type": "sbt_document", "doc_type": "sbt_document",

View File

@ -76,6 +76,10 @@ def test_1_invoice_5_imei():
"0HU33NIW200044K", "0HU33NIW200044K",
"0GJG4DBW200318X" "0GJG4DBW200318X"
] ]
},
{
"label": "invoice_no",
"value": None
} }
], ],
"doc_type": "sbt_document", "doc_type": "sbt_document",