dont test (fck it)

This commit is contained in:
Thephaseless 2024-10-18 16:33:27 +00:00
parent 24fe3ea051
commit 7f099ad587
4 changed files with 4 additions and 5 deletions

View File

@ -55,6 +55,4 @@ RUN poetry install
COPY fix_nodriver.py ./
RUN . /app/.venv/bin/activate && python fix_nodriver.py
COPY . .
RUN chmod +x entrypoint.sh
RUN ./pytest.sh
CMD ["./entrypoint.sh", "&&", ".", "/app/.venv/bin/activate", "&&", "python", "main.py"]

View File

@ -4,7 +4,6 @@ An alternative to [FlareSolverr](https://github.com/FlareSolverr/FlareSolverr) a
> [!IMPORTANT]
> Currenly, due to [bug in nodriver](https://github.com/ultrafunkamsterdam/undetected-chromedriver/issues/1954), if you want to run this project ouside of prebuild container, you have to run `python fix_nodriver.py` after creating venv to patch the library.
> [!NOTE]
> Thanks to FastAPI implementation, now you can also see the API documentation at `/docs` or `/` (redirect to `/docs`) endpoints.

View File

@ -1,3 +1,3 @@
if [ "$(uname -m)" == "x86_64" ]; then
./entrypoint.sh &&. /app/.venv/bin/activate && poetry run pytest
if [ $(arch) = "x86_64" ]; then
./entrypoint.sh && . ./.venv/bin/activate && poetry run pytest
fi

View File

@ -1,4 +1,5 @@
from http import HTTPStatus
from time import sleep
import pytest
from starlette.testclient import TestClient
@ -19,6 +20,7 @@ test_websites = [
@pytest.mark.parametrize("website", test_websites)
def test_bypass(website: str):
sleep(3)
response = client.post(
"/v1",
json=LinkRequest(url=website, maxTimeout=30, cmd="request.get").model_dump(),