Skip to content

Commit

Permalink
tests passed
Browse files Browse the repository at this point in the history
  • Loading branch information
nilshempelmann committed Jan 4, 2019
1 parent 3f27849 commit 224027c
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 12 deletions.
2 changes: 1 addition & 1 deletion tests/test_eggshell.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import pytest

from common import TESTDATA
from .common import TESTDATA

from os.path import basename, join
import tempfile
Expand Down
2 changes: 1 addition & 1 deletion tests/test_nc_utils.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import pytest

from common import TESTDATA
from .common import TESTDATA

from eggshell.utils import local_path
from eggshell.nc import nc_utils
Expand Down
8 changes: 4 additions & 4 deletions tests/test_ocg_utils.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import pytest

from common import TESTDATA
from .common import TESTDATA

from os.path import basename, join
import tempfile
Expand All @@ -12,9 +12,9 @@

from eggshell.nc import ocg_utils
from eggshell.utils import local_path

import flyingpigeon as fp
paths = Paths(fp)
from eggshell.config import Paths
import eggshell as eg
paths = Paths(eg)

def test_ocgis_import():
from ocgis import constants
Expand Down
13 changes: 7 additions & 6 deletions tests/test_utils.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-

"""Tests for `utils` package."""

import pytest
from .common import TESTDATA

import tempfile
import zipfile

from eggshell import utils
from eggshell.utils import local_path
from eggshell.config import Paths
import eggshell as eg
paths = Paths(eg)


def test_archive():
Expand All @@ -25,9 +28,7 @@ def test_extract_archive():


def test_Paths():
assert "flyingpigeon/tests/testdata" in paths.testdata
assert 'flyingpigeon/data' in paths.data
assert 'flyingpigeon/data/shapefiles' in paths.shapefiles
assert "eggshell/tests/testdata" in paths.testdata


def test_local_path():
Expand Down

0 comments on commit 224027c

Please sign in to comment.