Skip to content

fix: error on illegal page size - #662

Merged
Andrew Alexander (andrewalexander) merged 7 commits into
mainfrom
error-page-size
Jan 16, 2025
Merged

fix: error on illegal page size#662
Andrew Alexander (andrewalexander) merged 7 commits into
mainfrom
error-page-size

Conversation

@andrewalexander

@andrewalexander Andrew Alexander (andrewalexander) commented Oct 24, 2024

Copy link
Copy Markdown
Contributor

Adds an error if a page size greater than the API's maximum of 1000 is entered. It also includes a message instructing users to use --pages -1 to fetch all pages in the event they hit this error.

Updated 2025-01-10:

Updated the dependencies per all the other open dependabot PRs; added the same check/warning for the execute-saved-query-by-id variant (done before we execute the saved query); and added tests for both places to maintain 100% coverage

@harningt

Copy link
Copy Markdown
Contributor

Bet it wants you to break up that line :(

Comment thread censys/cli/commands/asm.py Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

poetry black censys/ made the suggested fix I presented

Co-authored-by: Thomas Harning Jr <thomas@censys.io>
Comment thread censys/cli/commands/asm.py Outdated
@github-actions github-actions Bot added the stale label Dec 30, 2024
@github-actions github-actions Bot closed this Jan 6, 2025
@andrewalexander

Copy link
Copy Markdown
Contributor Author

I think I need another test based on the 100% requirement of the last failure

FAIL Required test coverage of 100% not reached. Total coverage: 99.88%

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

4 participants