prevent failure when module does not have a data field - #1682
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