We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d991d6e + 9969796 commit 1e4aa8eCopy full SHA for 1e4aa8e
1 file changed
contentcuration/contentcuration/tests/test_contentnodes.py
@@ -201,6 +201,24 @@ def test_get_node_details(self):
201
f"List field '{field}' has falsy values",
202
)
203
204
+ def test_get_details_with_null_provenance_fields(self):
205
+ node = ContentNode.objects.create(
206
+ title="Null Fields Test",
207
+ parent=self.channel.main_tree,
208
+ kind=self.topic,
209
+ author=None,
210
+ provider=None,
211
+ aggregator=None,
212
+ copyright_holder=None,
213
+ )
214
+
215
+ details = node.get_details()
216
217
+ assert details["authors"] == []
218
+ assert details["providers"] == []
219
+ assert details["aggregators"] == []
220
+ assert details["copyright_holders"] == []
221
222
223
class NodeOperationsTestCase(StudioTestCase):
224
def setUp(self):
0 commit comments