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.
1 parent 3426a49 commit 52e5ab3Copy full SHA for 52e5ab3
xblock/test/test_field_data.py
@@ -76,6 +76,13 @@ def test_invalid_scope(self):
76
with pytest.raises(InvalidScopeError):
77
self.split.get(self.block, 'user_state')
78
79
+ def test_empty_scope(self):
80
+ with pytest.raises(InvalidScopeError):
81
+ split = SplitFieldData({
82
+ Scope.user_state: None
83
+ })
84
+ split.get(self.block, 'user_state')
85
+
86
def test_default(self):
87
self.split.default(self.block, 'content')
88
self.content.default.assert_called_once_with(self.block, 'content')
0 commit comments