Repository navigation
Remove the AioPandasCursor tests that #1245 covers #1265
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -64,16 +64,6 @@ async def test_no_result_set_raises(self, aio_pandas_cursor): | |
| with pytest.raises(ProgrammingError): | ||
| aio_pandas_cursor.as_pandas() | ||
|
|
||
| async def test_invalid_arraysize(self, aio_pandas_cursor): | ||
| aio_pandas_cursor.arraysize = 10000 | ||
| assert aio_pandas_cursor.arraysize == 10000 | ||
| with pytest.raises(ProgrammingError): | ||
| aio_pandas_cursor.arraysize = -1 | ||
|
|
||
| async def test_cancel_initial(self, aio_pandas_cursor): | ||
| with pytest.raises(ProgrammingError): | ||
| await aio_pandas_cursor.cancel() | ||
|
|
||
| @pytest.mark.parametrize( | ||
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Independent review (relayed): Codex CLI 0.163.0, model gpt-6-astra, ChatGPT login, Covered: the cursor sources, inheritance, constructor and factory paths, fixtures, and the remaining tests under |
||
| "aio_pandas_cursor", | ||
| [{"cursor_kwargs": {"unload": True}}], | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Self-review of
fb22d08a432f120a187d23a07e0e84652e7abc92..d0889525ee0a1dfff0cfc5a8a06054c7bead7607.Round 1 (behavior and test quality): CLEAN.
AioPandasCursorinheritsarraysizefromWithResultSet, whose constructor assigns through the setter (pyathena/result_set.py:1013), so the constructor-based covers reach the setter thattest_invalid_arraysizeassigned; capping it at 1000 or accepting zero fails theAioPandasCursorcases.cancel()isWithAsyncFetch.cancel(), shared by the aio cursors; removing its query ID check failstest_cancel_without_query[AioPandasCursor].ProgrammingErrorandpyteststay in use;just lintpassed.Round 2 (claims and operation): CLEAN. The covers exist on fb22d08 with
AioPandasCursorinUNCAPPED_CURSORS(tests/pyathena/test_connection.py:52) and_ALL_CURSOR_CLASSES(tests/pyathena/aio/test_common.py:23). The removed tests used the liveaio_pandas_cursorfixture, so the change saves its connection setup; no local live run.