Skip to content

Commit b4e3dee

Browse files
committed
tests: basic smoke test for summary command
1 parent 37cff94 commit b4e3dee

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

tests/cli/commands/test_summary.py

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
from typing import Callable, List
2+
3+
from click import Command, Group
4+
5+
from stactools.cli.commands.summary import create_summary_command
6+
from stactools.testing.cli_test import CliTestCase
7+
from tests import test_data
8+
9+
10+
class SummaryTest(CliTestCase):
11+
def create_subcommand_functions(self) -> List[Callable[[Group], Command]]:
12+
return [create_summary_command]
13+
14+
def test_summary(self) -> None:
15+
path = test_data.get_path("data-files/planet-disaster/collection.json")
16+
result = self.run_command(f"summary {path}")
17+
self.assertEqual(0, result.exit_code)

0 commit comments

Comments
 (0)