test: fix test cases and lint issues
This commit is contained in:
committed by
Agrendalath
parent
20ed3d64ec
commit
d0fa2d65e3
@@ -38,7 +38,7 @@ class TestErrorBlock(SetupTestErrorBlock):
|
||||
self.error_msg
|
||||
)
|
||||
assert isinstance(descriptor, ErrorBlock)
|
||||
descriptor.xmodule_runtime = self.system
|
||||
descriptor.runtime = self.system
|
||||
context_repr = self.system.render(descriptor, STUDENT_VIEW).content
|
||||
assert self.error_msg in context_repr
|
||||
assert repr(self.valid_xml) in context_repr
|
||||
|
||||
Reference in New Issue
Block a user