Skip to content
This repository has been archived by the owner on Oct 26, 2022. It is now read-only.

Test review apps. #273

Draft
wants to merge 13 commits into
base: master
Choose a base branch
from
Draft

Test review apps. #273

wants to merge 13 commits into from

Conversation

prescod
Copy link
Contributor

@prescod prescod commented Jan 4, 2020

No description provided.

@prescod prescod temporarily deployed to sfdoc-review-apps-cwuuhxcy5x18 January 4, 2020 04:12 Inactive
@prescod prescod temporarily deployed to sfdoc-review-apps-oynewdaemqs4 January 4, 2020 04:22 Inactive
@prescod prescod temporarily deployed to sfdoc-review-apps-e4bye9crjy8w January 4, 2020 04:50 Inactive
@davisagli davisagli temporarily deployed to sfdoc-review-apps-i0rvry15bkze January 4, 2020 04:53 Inactive
@prescod prescod temporarily deployed to sfdoc-review-apps-0gpnwhjov3ys January 4, 2020 17:52 Inactive
@davisagli davisagli temporarily deployed to sfdoc-review-apps-i0zzyippbnua January 4, 2020 17:56 Inactive
@prescod prescod temporarily deployed to sfdoc-review-apps-i0zzyippbnua January 4, 2020 19:10 Inactive
@prescod prescod temporarily deployed to sfdoc-review-apps-i0zzyippbnua January 4, 2020 19:11 Inactive
@prescod prescod temporarily deployed to sfdoc-review-apps-i0zzyippbnua January 4, 2020 19:23 Inactive
@prescod prescod temporarily deployed to sfdoc-review-apps-i0zzyippbnua January 5, 2020 04:05 Inactive
@prescod prescod temporarily deployed to sfdoc-review-apps-i0zzyippbnua January 5, 2020 04:14 Inactive
@prescod prescod temporarily deployed to sfdoc-review-apps-i0zzyippbnua January 5, 2020 04:25 Inactive
@prescod prescod temporarily deployed to sfdoc-review-apps-i0zzyippbnua January 5, 2020 04:30 Inactive
@prescod prescod temporarily deployed to sfdoc-review-apps-i0zzyippbnua January 5, 2020 04:42 Inactive
@prescod prescod temporarily deployed to sfdoc-review-apps-i0zzyippbnua January 5, 2020 04:53 Inactive

if os.environ.get("HEROKU_APP_NAME", "").startswith("sfdoc-review-apps-"):
assert not os.system("pip install --upgrade -r requirements/test.txt")
os.environ["DJANGO_SETTINGS_MODULE"] = "config.settings.integration_tests"
Copy link
Contributor

Choose a reason for hiding this comment

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

you could use the --ds option for pytest instead. https://pytest-django.readthedocs.io/en/latest/configuring_django.html#command-line-option-ds-settings

I'll leave this up to you but it seems a bit silly to have heroku-release.sh call into Python just to shell back out to run other commands...

env = environ.Env()
@pytest.fixture(scope='session')
def django_db_setup():
settings.DATABASES['default'] = env.db("DATABASE_URL")
Copy link
Contributor

Choose a reason for hiding this comment

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

What's this for?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I added a clarifying comment in 231b1ff.

@prescod prescod temporarily deployed to sfdoc-review-apps-i0zzyippbnua January 6, 2020 17:30 Inactive
@davisagli davisagli temporarily deployed to sfdoc-review-apps-vwd4fzsh0njm February 7, 2020 23:57 Inactive
@prescod prescod temporarily deployed to sfdoc-review-apps-ghkmtq7zkben February 26, 2020 22:40 Inactive
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants