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

Test proxied embed API #8051

Merged
merged 3 commits into from Mar 30, 2021
Merged

Test proxied embed API #8051

merged 3 commits into from Mar 30, 2021

Conversation

stsewd
Copy link
Member

@stsewd stsewd commented Mar 25, 2021

  • Changed the url name to match the others and have the same name as the
    proxied one.
  • Divide the test so is easy to test the proxied version.

- Changed the url name to match the others and have the same name as the
  proxied one.
- Divide the test so is easy to test the proxied version.
Copy link
Member

@ericholscher ericholscher left a comment

Choose a reason for hiding this comment

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

Looks good 👍

@@ -36,6 +36,9 @@ def setup_method(self, settings):
settings.USE_SUBDOMAIN = True
settings.PUBLIC_DOMAIN = 'readthedocs.io'

def get(self, client, *args, **kwargs):
return client.get(*args, **kwargs)
Copy link
Member

Choose a reason for hiding this comment

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

Probably could use a docstring explaining why this is here -- I assume to override elsewhere?

Copy link
Member Author

Choose a reason for hiding this comment

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

I just added one. It's overridden in the proxied api tests (in this same file)

@stsewd stsewd merged commit 28436d4 into master Mar 30, 2021
@stsewd stsewd deleted the test-proxied-embed-api branch March 30, 2021 00:24
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.

None yet

2 participants