Skip to content

Fix spelling error #82

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions junit_xml/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -399,15 +399,15 @@ def __init__(
self.errors = []
self.failures = []
self.skipped = []
self.allow_multiple_subalements = allow_multiple_subelements
self.allow_multiple_subelements = allow_multiple_subelements

def add_error_info(self, message=None, output=None, error_type=None):
"""Adds an error message, output, or both to the test case"""
error = {}
error["message"] = message
error["output"] = output
error["type"] = error_type
if self.allow_multiple_subalements:
if self.allow_multiple_subelements:
if message or output:
self.errors.append(error)
elif not len(self.errors):
Expand All @@ -426,7 +426,7 @@ def add_failure_info(self, message=None, output=None, failure_type=None):
failure["message"] = message
failure["output"] = output
failure["type"] = failure_type
if self.allow_multiple_subalements:
if self.allow_multiple_subelements:
if message or output:
self.failures.append(failure)
elif not len(self.failures):
Expand All @@ -444,7 +444,7 @@ def add_skipped_info(self, message=None, output=None):
skipped = {}
skipped["message"] = message
skipped["output"] = output
if self.allow_multiple_subalements:
if self.allow_multiple_subelements:
if message or output:
self.skipped.append(skipped)
elif not len(self.skipped):
Expand Down