зеркало из https://github.com/microsoft/azure-cli.git
Fix output tests for core and pin tabulate version (#3313)
This commit is contained in:
Родитель
c4f6127a4d
Коммит
e84f34eaa5
|
@ -13,5 +13,4 @@ pyyaml==3.11
|
|||
requests==2.9.1
|
||||
setuptools==30.4.0
|
||||
six==1.10.0
|
||||
tabulate==0.7.5
|
||||
vcrpy==1.10.3
|
||||
|
|
|
@ -64,7 +64,7 @@ DEPENDENCIES = [
|
|||
'pyyaml',
|
||||
'requests',
|
||||
'six',
|
||||
'tabulate',
|
||||
'tabulate==0.7.7',
|
||||
]
|
||||
|
||||
if sys.version_info < (3, 4):
|
||||
|
|
|
@ -14,16 +14,7 @@ from azure.cli.core._output import (OutputProducer, format_json, format_table,
|
|||
import azure.cli.core.util as util
|
||||
|
||||
|
||||
class TestOutput(unittest.TestCase):
|
||||
|
||||
@classmethod
|
||||
def setUpClass(cls):
|
||||
pass
|
||||
|
||||
@classmethod
|
||||
def tearDownClass(cls):
|
||||
pass
|
||||
|
||||
class TestCoreCLIOutput(unittest.TestCase):
|
||||
def setUp(self):
|
||||
self.io = StringIO()
|
||||
|
||||
|
@ -87,7 +78,7 @@ class TestOutput(unittest.TestCase):
|
|||
self.assertEqual(util.normalize_newlines(self.io.getvalue()), util.normalize_newlines(
|
||||
"""Active Val
|
||||
-------- --------
|
||||
1 0b1f6472
|
||||
True 0b1f6472
|
||||
"""))
|
||||
|
||||
def test_out_table_list_of_lists(self):
|
||||
|
@ -124,7 +115,7 @@ qwerty 0b1f6472qwerty
|
|||
self.assertEqual(util.normalize_newlines(self.io.getvalue()), util.normalize_newlines(
|
||||
"""Active Name Sub Val
|
||||
-------- ------ -------- --------------
|
||||
1 qwerty 0b1f6472 0b1f6472qwerty
|
||||
True qwerty 0b1f6472 0b1f6472qwerty
|
||||
"""))
|
||||
|
||||
def test_out_table_no_query_yes_transformer_order(self):
|
||||
|
@ -141,7 +132,7 @@ qwerty 0b1f6472qwerty
|
|||
self.assertEqual(util.normalize_newlines(self.io.getvalue()), util.normalize_newlines(
|
||||
"""Name Val Active Sub
|
||||
------ -------------- -------- --------
|
||||
qwerty 0b1f6472qwerty 1 0b1f6472
|
||||
qwerty 0b1f6472qwerty True 0b1f6472
|
||||
"""))
|
||||
|
||||
# TSV output tests
|
||||
|
|
Загрузка…
Ссылка в новой задаче