Skip to content
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

Drop private imports from test_decoders.py #2570

Merged
merged 4 commits into from
Apr 19, 2023

Conversation

florimondmanca
Copy link
Member

Another contribution towards #2492

decoder = TextChunker(chunk_size=3)
assert decoder.decode("123456") == ["123", "456"]
assert decoder.decode("78") == []
assert decoder.flush() == ["78"]
Copy link
Member Author

Choose a reason for hiding this comment

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

Most of these cases we actually already well covered in test_responses.py, so I figured I'd expand those a bit to match coverage, and drop these.

@florimondmanca florimondmanca added the refactor Issues and PRs related to code refactoring label Feb 4, 2023
Copy link
Member

@tomchristie tomchristie left a comment

Choose a reason for hiding this comment

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

Good stuff. I notice that this change will conflict with #2423.

Any opinion on which of those two PRs we should merge first?

@Kludex
Copy link
Member

Kludex commented Feb 9, 2023

Does the new GitHub feature (merge queue) helps here?

@florimondmanca
Copy link
Member Author

I'm happy to update this once #2423 is merged 😃

@tomchristie
Copy link
Member

okay - this one needs updating now.
would you still like to take that on Florimond?

Copy link
Member

@tomchristie tomchristie left a comment

Choose a reason for hiding this comment

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

Nicely done, thanks!

I've resolved the merge conflicts and we're good to go on this now.

@tomchristie tomchristie merged commit cca6206 into master Apr 19, 2023
@tomchristie tomchristie deleted the refactor/decoders-private-imports branch April 19, 2023 13:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
refactor Issues and PRs related to code refactoring
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants