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

Make mock_puts_blocked a sync contextmanager as it doesn't do any async things #672

Merged
merged 1 commit into from
Nov 26, 2024

Conversation

coretl
Copy link
Collaborator

@coretl coretl commented Nov 22, 2024

Fixes #475

Changes

# old
async with mock_puts_blocked(sig):
    ...
# old
with mock_puts_blocked(sig):
    ...

…nc things

# Changes
```python
# old
async with mock_puts_blocked(sig):
    ...
# old
with mock_puts_blocked(sig):
    ...
```
@coretl coretl requested a review from stan-dot November 22, 2024 17:08
Copy link
Contributor

@stan-dot stan-dot left a comment

Choose a reason for hiding this comment

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

lgtm

@coretl coretl merged commit 6f20a4b into main Nov 26, 2024
24 checks passed
@coretl coretl deleted the contextmanager branch November 26, 2024 13:52
evalott100 pushed a commit that referenced this pull request Nov 27, 2024
…nc things (#672)

# Changes
```python
# old
async with mock_puts_blocked(sig):
    ...
# old
with mock_puts_blocked(sig):
    ...
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

set_mock_value should be a contextmanager not an asynccontextmanager
2 participants