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

Convert gym unit test mock from Python str to HTML #219

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from

Conversation

tianyizheng02
Copy link
Contributor

Convert the mock for gym unit tests from a Python string to an HTML file. This makes the mocking of gym unit tests more consistent with how unit tests for other modules are mocked. This also avoids unnecessarily mocking entire module functions, as only the HTTP requests made by those functions need to be mocked. Since the mock is only supposed to contain an HTML HTTP response, it makes more sense to keep it as HTML.

I placed the new HTML mock in the tests/samples/ directory rather than the tests/mocks/ directory where the current mock is located. I'm doing this as part of a larger effort to migrate all the mocks in tests/mocks/ to tests/samples so that mocks won't be split across two sibling directories.

Convert the mock for gym unit tests from a Python string to an HTML
file. This makes the mocking of gym unit tests more consistent with how
unit tests for other modules are mocked. This also avoids unnecessarily
mocking entire module functions, as only the HTTP requests made by those
functions need to be mocked. Since the mock is only supposed to contain
an HTML HTTP response, it makes more sense to keep it as HTML.
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.

1 participant