Skip to content

Add test settings file for proxito #6623

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

Merged
merged 2 commits into from
Feb 24, 2020
Merged

Conversation

stsewd
Copy link
Member

@stsewd stsewd commented Feb 3, 2020

This is needed to allow us to run tests with the proxito settings in
.com (and probably in .org too)

This is needed to allow us to run tests with the proxito settings in
.com (and probably in .org too)
@stsewd stsewd requested a review from a team February 3, 2020 21:07
Copy link
Member

@humitos humitos left a comment

Choose a reason for hiding this comment

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

I think this makes sense.

We should double check that this won't break production. I don't remember exactly how is the proxito settings file generated, but I think it's based on readthedocs/settings/proxito.py which is deleted in this PR.

@stsewd
Copy link
Member Author

stsewd commented Feb 4, 2020

@humitos looks like we are not using any file from here for the production settings, neither on .org or .com. We should use the base settings from here after it's merged so we don't duplicate them.

@stsewd stsewd requested a review from humitos February 11, 2020 17:04
@ericholscher
Copy link
Member

We should merge this after fixing the conflict.

@stsewd stsewd merged commit b4dcd2d into master Feb 24, 2020
@stsewd stsewd deleted the stsewd/test-settings-proxito branch February 24, 2020 23:44
@davidfischer
Copy link
Contributor

davidfischer commented Feb 25, 2020

After this was merged, in my local environment it seems to create an empty readthedocs/settings/proxito.py. I think it's the result of this. This causes proxito to fail to start due to the SECRET_KEY not being set.

Edit: to be clear, the empty file is created while running inv docker.up.

@humitos
Copy link
Member

humitos commented Feb 25, 2020

Yes. This breaks the local environment. I think it's better to have everything related to tests inside the tests/ directory, so they are isolated. I propose to move this to readthedocs/proxito/tests/settings.

@humitos
Copy link
Member

humitos commented Feb 25, 2020

I open a PR with a fix for this at #6703 without changing the structure.

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.

4 participants