-
Notifications
You must be signed in to change notification settings - Fork 4.2k
prevent failure when module does not have a data field #1682
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
Conversation
|
Is there already a bank of tests for the REST API that I could add a test to? |
|
@dmitchell @singingwolfboy - bump |
|
I hope to get to this today. Getting internet at home and going to doctors On Mon, Nov 18, 2013 at 11:49 AM, Gabe Mulley notifications@github.comwrote:
|
|
This seems reasonable to me. I don't know anything about a bank of REST API tests, unfortunately -- but @dmitchell might know. |
|
👍 as to a bank of tests, we've been changing existing tests to the new api or making one test file per view file. It would be great if you could add a test to cms.djangoapps.contentstore.tests.test_item.ItemTest (I note that I neglected to do so.) |
|
Hey what's going on with this PR? It's been untouched for 14 days. |
|
I think Gabe should merge it. |
|
I've been 100% focused on the datajam lately, originally needed this for it, turns out we don't really, so I shifted my focus elsewhere. I was planning on adding tests for it after we get the datajam stuff squared away and then merging it. I can merge now, though, if that's helpful. |
|
I'm just trying to clear out old PRs. Do what makes sense for you. |
|
@mulby Now that the datajam is done, are you ready to merge this? |
|
Alright, I've added a test. Didn't invest too much in surrounding coverage, however, this test does cover the change. When/if this passes the CI tests, I'll merge it in to master. |
prevent failure when module does not have a data field
This raised an AttributeError when I tried to retrieve a vertical or a course using the REST API.
Reviewers: @dmitchell, @singingwolfboy