Skip to content

Commit

Permalink
pre-commit auto changes
Browse files Browse the repository at this point in the history
  • Loading branch information
ScriptAutomate committed Jan 19, 2021
1 parent 2c5ee76 commit 279c9a4
Showing 1 changed file with 1 addition and 14 deletions.
15 changes: 1 addition & 14 deletions tests/unit/output/test_highstate.py
Original file line number Diff line number Diff line change
@@ -1,20 +1,10 @@
# -*- coding: utf-8 -*-
"""
unittests for highstate outputter
"""

# Import Python Libs
from __future__ import absolute_import

import salt.output.highstate as highstate

# Import Salt Libs
import salt.utils.stringutils

# Import 3rd-party libs
from salt.ext import six

# Import Salt Testing Libs
from tests.support.mixins import LoaderModuleMockMixin
from tests.support.unit import TestCase

Expand Down Expand Up @@ -125,10 +115,7 @@ def test_output_comment_is_not_unicode(self):
entry = self.data[key]
continue
entry = entry[key]
if six.PY2:
entry["comment"] = salt.utils.stringutils.to_unicode(entry["comment"])
else:
entry["comment"] = salt.utils.stringutils.to_bytes(entry["comment"])
entry["comment"] = salt.utils.stringutils.to_bytes(entry["comment"])
ret = highstate.output(self.data)
self.assertIn("Succeeded: 1 (changed=1)", ret)
self.assertIn("Failed: 0", ret)
Expand Down

0 comments on commit 279c9a4

Please sign in to comment.