How to use gbdxtools - 10 common examples

To help you get started, we’ve selected a few gbdxtools examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github DigitalGlobe / gbdxtools / tests / unit / test_task_registry.py View on Github external
'''
Contact: dmitry.zviagintsev@digitalglobe.com

Unit test the task registry class
'''
import os

from gbdxtools import Interface
from gbdxtools.task_registry import TaskRegistry
import vcr
from auth_mock import get_mock_gbdx_session

mock_gbdx_session = get_mock_gbdx_session(token="dummytoken")
gbdx = Interface(gbdx_connection=mock_gbdx_session)


def test_init():
    tr = TaskRegistry()
    assert isinstance(tr, TaskRegistry)


@vcr.use_cassette('tests/unit/cassettes/test_list_tasks.yaml', filter_headers=['authorization'])
def test_list_tasks():
    tr = TaskRegistry()
    task_list = tr.list()
    assert task_list is not None
    assert 'HelloGBDX' in task_list


@vcr.use_cassette('tests/unit/cassettes/test_describe_tasks.yaml', filter_headers=['authorization'])
github DigitalGlobe / gbdxtools / tests / unit / test_interface.py View on Github external
def test_init():
    gi = gbdxtools.Interface(gbdx_connection=mock_gbdx_session)
    assert isinstance(gi, gbdxtools.Interface)
github DigitalGlobe / gbdxtools / tests / unit / test_catalog.py View on Github external
def test_init(self):
        c = Catalog()
        self.assertTrue(isinstance(c, Catalog))
github DigitalGlobe / gbdxtools / tests / unit / test_catalog.py View on Github external
def test_init(self):
        c = Catalog()
        self.assertTrue(isinstance(c, Catalog))
github DigitalGlobe / gbdxtools / tests / unit / test_task_registry.py View on Github external
def test_init():
    tr = TaskRegistry()
    assert isinstance(tr, TaskRegistry)
github DigitalGlobe / gbdxtools / tests / unit / test_task_registry.py View on Github external
def test_init():
    tr = TaskRegistry()
    assert isinstance(tr, TaskRegistry)
github DigitalGlobe / gbdxtools / tests / unit / test_ordering.py View on Github external
def test_init(self):
        o = Ordering()
        assert isinstance(o, Ordering)
github DigitalGlobe / gbdxtools / tests / unit / test_ordering.py View on Github external
def test_init(self):
        o = Ordering()
        assert isinstance(o, Ordering)
github DigitalGlobe / gbdxtools / tests / unit / test_idaho.py View on Github external
def test_init(self):
        c = Idaho()
        self.assertTrue(isinstance(c, Idaho))
github DigitalGlobe / gbdxtools / tests / unit / test_idaho.py View on Github external
def test_init(self):
        c = Idaho()
        self.assertTrue(isinstance(c, Idaho))