Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion tests/git-init/git.sh
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
#!/bin/bash
#!/bin/sh
apk add --no-cache git
2 changes: 1 addition & 1 deletion tests/test_git.py
Original file line number Diff line number Diff line change
Expand Up @@ -427,7 +427,7 @@ def _gen(scm: Git, s: str, commit_timestamp: Optional[float] = None) -> str:
with open(s, mode="w") as f:
f.write(s)
scm.dulwich.add([s])
scm.dulwich.repo.do_commit(
scm.dulwich.repo.get_worktree().commit(
message=s.encode("utf-8"), commit_timestamp=commit_timestamp
)
return scm.get_rev()
Expand Down
3 changes: 3 additions & 0 deletions tests/test_lfs.py
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,7 @@ def mock_object_429(
("X-RateLimit-Reset", lambda: f"{int(time()) + 1}"),
],
)
@pytest.mark.filterwarnings("ignore:enable_cleanup_closed ignored.*:DeprecationWarning")
def test_rate_limit_retry(
storage: LFSStorage, rate_limit_header: str, rate_limit_value: Callable[[], str]
):
Expand Down Expand Up @@ -232,6 +233,7 @@ def test_rate_limit_retry(
("X-RateLimit-Reset", lambda: f"{int(time()) + 1}"),
],
)
@pytest.mark.filterwarnings("ignore:enable_cleanup_closed ignored.*:DeprecationWarning")
def test_rate_limit_max_retries_batch(
storage: LFSStorage, rate_limit_header: str, rate_limit_value: Callable[[], str]
):
Expand Down Expand Up @@ -259,6 +261,7 @@ def test_rate_limit_max_retries_batch(
("X-RateLimit-Reset", lambda: f"{int(time()) + 1}"),
],
)
@pytest.mark.filterwarnings("ignore:enable_cleanup_closed ignored.*:DeprecationWarning")
def test_rate_limit_max_retries_objects(
storage: LFSStorage, rate_limit_header: str, rate_limit_value: Callable[[], str]
):
Expand Down