Skip to content

TST: Refactor S3 tests #61703

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

fangchenli
Copy link
Member

  • closes #xxxx (Replace xxxx with the GitHub issue number)
  • Tests added and passed if fixing a bug or adding a new feature
  • All code checks passed.
  • Added type annotations to new arguments/methods/functions.
  • Added an entry in the latest doc/source/whatsnew/vX.X.X.rst file if fixing a bug or adding a new feature.

@fangchenli fangchenli added the IO Network Local or Cloud (AWS, GCS, etc.) IO Issues label Jun 24, 2025
@fangchenli fangchenli marked this pull request as draft June 24, 2025 20:24
@@ -2116,3 +2116,9 @@ def temp_file(tmp_path):
file_path = tmp_path / str(uuid.uuid4())
file_path.touch()
return file_path

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@fangchenli fangchenli marked this pull request as ready for review June 25, 2025 00:27
@fangchenli fangchenli changed the title [WIP] Refactor S3 tests TST: Refactor S3 tests Jun 25, 2025
@fangchenli fangchenli added the Testing pandas testing functions or related to the test suite label Jun 25, 2025
@pytest.fixture(scope="session")
def moto_server(aws_credentials):
moto_server = pytest.importorskip("moto.server")
server = moto_server.ThreadedMotoServer(port=0)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would prefer to continue to use the moto container in the CI since it's kept these S3 tests stable.

I would be OK using this for "local" runs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
IO Network Local or Cloud (AWS, GCS, etc.) IO Issues Testing pandas testing functions or related to the test suite
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants