Skip to content

Commit

Permalink
Install git and set cargo to use git
Browse files Browse the repository at this point in the history
  • Loading branch information
reconman committed Jan 14, 2024
1 parent e540a17 commit 3067dea
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 4 deletions.
4 changes: 3 additions & 1 deletion Docker/PlexAniSync/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
FROM python:3.11 AS builder

ENV CARGO_REGISTRIES_CRATES_IO_PROTOCOL=sparse

RUN apt-get update && \
apt-get install -y \
build-essential rustc \
build-essential rustc git \
&& apt-get clean && rm -rf /var/lib/apt/lists/*

RUN pip install --upgrade pip
Expand Down
4 changes: 3 additions & 1 deletion Docker/Tautulli/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
FROM python:3.9 AS builder

ENV CARGO_REGISTRIES_CRATES_IO_PROTOCOL=sparse

RUN apt-get update && \
apt-get install -y \
build-essential rustc \
build-essential rustc git \
&& apt-get clean && rm -rf /var/lib/apt/lists/*

RUN pip install --upgrade pip
Expand Down
9 changes: 7 additions & 2 deletions tests/test_graphql.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,14 @@ def test_fetch_user_list():
assert naruto.progress == 4
assert naruto.score == 70

def test_too_many_requests():
for i in range(100):
def test_too_many_requests(caplog):
for i in range(200):
graphql.fetch_user_list()
if "Rate limit hit, waiting for" in caplog.text:
break

assert "Rate limit hit, waiting for" in caplog.text


def test_search_by_id():
media = graphql.search_by_id(20)
Expand Down

0 comments on commit 3067dea

Please sign in to comment.