Skip to content

Commit

Permalink
Bug: Fix rm api add wrong objects bug
Browse files Browse the repository at this point in the history
  • Loading branch information
yanghua committed Sep 25, 2024
1 parent 1a76263 commit b8e1f29
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
.ONESHELL:
ENV_PREFIX=$(shell poetry env info -p 2>/dev/null)/bin/
TEST_DIR?="tosfs/tests/"

.PHONY: help
help: ## Show the help.
Expand Down Expand Up @@ -48,11 +47,11 @@ lint: ## Run pep8, black, mypy linters.

.PHONY: test
test: ## Run tests and generate coverage report.
$(ENV_PREFIX)pytest -vv -s --cov-config .coveragerc --cov=tosfs -l --tb=short --maxfail=1 ${TEST_DIR} --ignore=${TEST_DIR}/test_stability.py
$(ENV_PREFIX)pytest -vv -s --cov-config .coveragerc --cov=tosfs -l --tb=short --maxfail=1 tosfs/tests/ --ignore=tosfs/tests/test_stability.py

.PHONY: test_stability
test_stability: ## Run stability tests.
$(ENV_PREFIX)pytest -vv -s --cov-config .coveragerc --cov=tosfs -l --tb=short --maxfail=1 ${TEST_DIR}/test_stability.py
$(ENV_PREFIX)pytest -vv -s --cov-config .coveragerc --cov=tosfs -l --tb=short --maxfail=1 tosfs/tests/test_stability.py

.PHONY: watch
watch: ## Run tests on every change.
Expand Down
2 changes: 1 addition & 1 deletion tosfs/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -1239,7 +1239,7 @@ def _call_list_objects_type2(
)
is_truncated = resp.is_truncated
continuation_token = resp.next_continuation_token
all_results.extend(resp.contents + resp.common_prefixes)
all_results.extend(resp.contents)

deleting_objects = [
DeletingObject(o.key if hasattr(o, "key") else o.prefix)
Expand Down

0 comments on commit b8e1f29

Please sign in to comment.