Skip to content

Commit

Permalink
test: improve coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
rpenido committed Feb 28, 2024
1 parent e8b7395 commit e17bca6
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions openassessment/xblock/test/test_openassessment.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ def _read_tags_from_node(self, node):
"""
This method is originally defined in the XmlMixin in edx-platform.
"""
if 'tags-v1' in node.attrib:
self.xml_attributes['tags-v1'] = str(node.attrib['tags-v1'])
assert 'tags-v1' in node.attrib
self.xml_attributes['tags-v1'] = str(node.attrib['tags-v1'])


def _construct_xblock_from_class(*args, **kwargs):
Expand Down Expand Up @@ -1190,7 +1190,8 @@ def defined_manual_dates(self, xblock, step):
dt.datetime.fromisoformat(assessment.get('start')),
dt.datetime.fromisoformat(assessment.get('due'))
)
return None

assert False, f"Assessment {step} not found"

Check warning on line 1194 in openassessment/xblock/test/test_openassessment.py

View check run for this annotation

Codecov / codecov/patch

openassessment/xblock/test/test_openassessment.py#L1194

Added line #L1194 was not covered by tests

def setup_dates(self, xblock, course_dates=None, subsection_dates=None):
"""
Expand Down

0 comments on commit e17bca6

Please sign in to comment.