Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,9 @@ before_install:
# Install pygdal bindings compatible with dpkg based gdal libs
- pip install pygdal>="$(gdal-config --version)"

- pip install --progress-bar off --requirement requirements-test.txt
- pip install git+https://github.com/mapbox/rasterio.git@master

install:
- travis_retry pip install --upgrade pytest
- travis_retry pip install codecov cython boto3
Expand Down
2 changes: 1 addition & 1 deletion check-code.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,5 @@ shellcheck ./**/*.sh
yamllint ./**/*.yaml

# Users can specify extra folders (ie. integration_tests) as arguments.
py.test -r sx --cov digitalearthau --durations=5 digitalearthau scripts/**/*.py "$@"
py.test -r sx --cov digitalearthau --durations=5 digitalearthau scripts_tests/*.py scripts/**/*.py "$@"

9 changes: 4 additions & 5 deletions digitalearthau/testing/plugin.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
import itertools

import os
import pytest
from pathlib import Path
from typing import Iterable

import datacube
import digitalearthau
import digitalearthau.system
import pytest
from datacube.config import LocalConfig

from . import factories

# These are unavoidable in pytests due to fixtures
Expand All @@ -26,6 +23,8 @@

def pytest_report_header(config):
if config.getoption('verbose') > 0:
import datacube
import digitalearthau
return (
f"digitaleathau {digitalearthau.__version__}, "
f"opendatacube {datacube.__version__}"
Expand Down
2 changes: 2 additions & 0 deletions requirements-test.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
colorama
xmlschema
Loading