File: test_info.py

package info (click to toggle)
stactools 0.5.3-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 23,796 kB
  • sloc: python: 4,498; xml: 554; sh: 395; makefile: 34
file content (19 lines) | stat: -rw-r--r-- 558 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
import pystac
from click.testing import CliRunner
from stactools.cli.cli import cli


def test_info(planet_disaster: pystac.Collection) -> None:
    collection_path = planet_disaster.get_self_href()

    runner = CliRunner()
    result = runner.invoke(cli, ["info", collection_path])
    assert result.exit_code == 0


def test_describe(planet_disaster: pystac.Collection) -> None:
    collection_path = planet_disaster.get_self_href()

    runner = CliRunner()
    result = runner.invoke(cli, ["describe", collection_path])
    assert result.exit_code == 0