Skip to content

make ENABLE_SHOPPING_CART truly optional - #1174

Merged
jbau merged 1 commit into
masterfrom
jbau/fix/optional-enable-shopping-cart
Sep 30, 2013
Merged

make ENABLE_SHOPPING_CART truly optional#1174
jbau merged 1 commit into
masterfrom
jbau/fix/optional-enable-shopping-cart

Conversation

@jbau

@jbau jbau commented Sep 28, 2013

Copy link
Copy Markdown

course_about was throwing 500s if MITX_FEATURES['ENABLE_SHOPPING_CART']=False, after the previous PR landed.

@dianakhuang @ormsbee

@dianakhuang

Copy link
Copy Markdown
Contributor

👍 Though I think you might need to rebase to master to make sure the tests pass on Jenkins.

@ormsbee

ormsbee commented Sep 30, 2013

Copy link
Copy Markdown
Contributor

👍

course_about was throwing 500s if ENABLE_SHOPPING_CART=False
@jbau

jbau commented Sep 30, 2013

Copy link
Copy Markdown
Author

tests are passing now, merging.

jbau added a commit that referenced this pull request Sep 30, 2013
@jbau
jbau merged commit 829d0d5 into master Sep 30, 2013
@cahrens

cahrens commented Sep 30, 2013

Copy link
Copy Markdown

Note that you can add tests for the view function that returns the course about page text. That way you could test that the results are different based on whether or not the shopping cart is enabled.

For an example, see /edx-platform/cms/djangoapps/contentstore/tests/test_contentstore.py

If that doesn't work, there's always integration tests... It would appear that we don't have integration test coverage for the course about page.

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