From a762cbefa563809f519cf0c2a4a7ce98eb1f647a Mon Sep 17 00:00:00 2001 From: Tim Jenness Date: Mon, 24 Apr 2023 09:49:15 -0700 Subject: [PATCH] Test updates for new --verbose default --- tests/test_cliCmdQueryDatasetTypes.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/test_cliCmdQueryDatasetTypes.py b/tests/test_cliCmdQueryDatasetTypes.py index 7356550946..19bc8f95ec 100644 --- a/tests/test_cliCmdQueryDatasetTypes.py +++ b/tests/test_cliCmdQueryDatasetTypes.py @@ -46,7 +46,7 @@ def command(): def test_minimal(self): """Test only required parameters.""" - self.run_test(["query-dataset-types", "here"], self.makeExpected(repo="here")) + self.run_test(["query-dataset-types", "here"], self.makeExpected(repo="here", verbose=True)) def test_requiredMissing(self): """Test that if the required parameter is missing it fails""" @@ -113,11 +113,11 @@ def testQueryDatasetTypes(self): ) self.assertNotEqual(result.exit_code, 0, clickResultMsg(result)) # check not-verbose output: - result = runner.invoke(cli, ["query-dataset-types", "here"]) + result = runner.invoke(cli, ["query-dataset-types", "here", "--no-verbose"]) self.assertEqual(result.exit_code, 0, clickResultMsg(result)) self.assertAstropyTablesEqual(readTable(result.output), expectedNotVerbose) # check glob output: - result = runner.invoke(cli, ["query-dataset-types", "here", "t*"]) + result = runner.invoke(cli, ["query-dataset-types", "here", "--no-verbose", "t*"]) self.assertEqual(result.exit_code, 0, clickResultMsg(result)) self.assertAstropyTablesEqual(readTable(result.output), expectedNotVerbose) # check verbose output: @@ -234,7 +234,7 @@ def testRemoveDatasetTypes(self): self.assertDatasetTypes(runner, "*", ("placeholder",)) def assertDatasetTypes(self, runner: LogCliRunner, query: str, expected: tuple[str, ...]) -> None: - result = runner.invoke(cli, ["query-dataset-types", "here", query]) + result = runner.invoke(cli, ["query-dataset-types", "here", "--no-verbose", query]) self.assertEqual(result.exit_code, 0, clickResultMsg(result)) expected = AstropyTable( (expected,),