mirror of
https://github.com/ThePhaseless/Byparr.git
synced 2025-03-15 09:50:20 +08:00
dont test (fck it)
This commit is contained in:
parent
24fe3ea051
commit
7f099ad587
@ -55,6 +55,4 @@ RUN poetry install
|
|||||||
COPY fix_nodriver.py ./
|
COPY fix_nodriver.py ./
|
||||||
RUN . /app/.venv/bin/activate && python fix_nodriver.py
|
RUN . /app/.venv/bin/activate && python fix_nodriver.py
|
||||||
COPY . .
|
COPY . .
|
||||||
RUN chmod +x entrypoint.sh
|
|
||||||
RUN ./pytest.sh
|
|
||||||
CMD ["./entrypoint.sh", "&&", ".", "/app/.venv/bin/activate", "&&", "python", "main.py"]
|
CMD ["./entrypoint.sh", "&&", ".", "/app/.venv/bin/activate", "&&", "python", "main.py"]
|
@ -4,7 +4,6 @@ An alternative to [FlareSolverr](https://github.com/FlareSolverr/FlareSolverr) a
|
|||||||
|
|
||||||
> [!IMPORTANT]
|
> [!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.
|
> 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]
|
> [!NOTE]
|
||||||
> Thanks to FastAPI implementation, now you can also see the API documentation at `/docs` or `/` (redirect to `/docs`) endpoints.
|
> Thanks to FastAPI implementation, now you can also see the API documentation at `/docs` or `/` (redirect to `/docs`) endpoints.
|
||||||
|
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
if [ "$(uname -m)" == "x86_64" ]; then
|
if [ $(arch) = "x86_64" ]; then
|
||||||
./entrypoint.sh &&. /app/.venv/bin/activate && poetry run pytest
|
./entrypoint.sh && . ./.venv/bin/activate && poetry run pytest
|
||||||
fi
|
fi
|
@ -1,4 +1,5 @@
|
|||||||
from http import HTTPStatus
|
from http import HTTPStatus
|
||||||
|
from time import sleep
|
||||||
|
|
||||||
import pytest
|
import pytest
|
||||||
from starlette.testclient import TestClient
|
from starlette.testclient import TestClient
|
||||||
@ -19,6 +20,7 @@ test_websites = [
|
|||||||
|
|
||||||
@pytest.mark.parametrize("website", test_websites)
|
@pytest.mark.parametrize("website", test_websites)
|
||||||
def test_bypass(website: str):
|
def test_bypass(website: str):
|
||||||
|
sleep(3)
|
||||||
response = client.post(
|
response = client.post(
|
||||||
"/v1",
|
"/v1",
|
||||||
json=LinkRequest(url=website, maxTimeout=30, cmd="request.get").model_dump(),
|
json=LinkRequest(url=website, maxTimeout=30, cmd="request.get").model_dump(),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user