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

Add requests-mock dependency to dev requirements #1827

Merged
merged 1 commit into from
Jan 13, 2021

Conversation

kclowes
Copy link
Collaborator

@kclowes kclowes commented Jan 8, 2021

What was wrong?

requests-mock is used in the beacon tests and I found I couldn't run my tests locally from the top-level tests/ dir without it installed.

How was it fixed?

Added requests-mock dependency to setup.py.

@marcgarreau let me know if this is the wrong solution!

Todo:

Cute Animal Picture

image

@kclowes kclowes requested a review from wolovim January 8, 2021 21:06
@wolovim
Copy link
Member

wolovim commented Jan 10, 2021

Ah, since these tests are not included in CI and are only intended as local smoke tests, perhaps the more appropriate route is to comment out the import or remove the mock template code altogether. No strong feels, but I think I favor the latter.

@kclowes kclowes force-pushed the add-requests-mock-lib branch 3 times, most recently from 0fd9552 to af0c019 Compare January 13, 2021 18:25
text=json.dumps(GENESIS_RESPONSE),
)
return session


@pytest.fixture
def beacon(session):
# return Beacon(
# beacon_url="mock://example.com/api",
# session=session,
# )
Copy link
Member

Choose a reason for hiding this comment

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

thanks for cleaning up. this comment and the session arg in this func definition can get removed too 👍

@kclowes kclowes force-pushed the add-requests-mock-lib branch from af0c019 to 5d1e60a Compare January 13, 2021 18:40
@kclowes kclowes merged commit c934ca4 into ethereum:master Jan 13, 2021
@kclowes kclowes deleted the add-requests-mock-lib branch January 13, 2021 18:50
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.

2 participants