File: test_update_extent.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 (13 lines) | stat: -rw-r--r-- 342 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
from click.testing import CliRunner
from stactools.cli.cli import cli

from tests import test_data


def test_update_extent():
    path = test_data.get_path(
        "data-files/basic/country-1/area-1-1/collection.json",
    )
    runner = CliRunner()
    result = runner.invoke(cli, ["update-extent", path])
    assert result.exit_code == 0