Skip to content
This repository has been archived by the owner on Jun 3, 2021. It is now read-only.

Commit

Permalink
Merge pull request #35 from hamishgibbs/coverage_path
Browse files Browse the repository at this point in the history
Fix coverage path issues
  • Loading branch information
hamishgibbs authored Jan 9, 2021
2 parents 7649e8a + d6f0f0f commit cf5c457
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 1 deletion.
Empty file added tests/__init__.py
Empty file.
1 change: 0 additions & 1 deletion test_credentials.py → tests/test_credentials.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import pytest
from pull_fb import credentials


Expand Down
40 changes: 40 additions & 0 deletions tests/test_url.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
import pytest
from datetime import datetime
from pull_fb import url


@pytest.fixture
def tilemovement_res():

return url.format_urls('TileMovement', '123', [datetime(2000, 1, 1)])


@pytest.fixture
def tilepopulation_res():

return url.format_urls('TilePopulation', '123', [datetime(2000, 1, 1)])


def test_format_urls_is_list(tilemovement_res):

assert type(tilemovement_res) is list


def test_format_urls_item_is_dict(tilemovement_res):

assert type(tilemovement_res[0]) is dict


def test_format_urls_url_is_str(tilemovement_res):

assert type(tilemovement_res[0]['url']) is str


def test_format_urls_url_tilemovement_has_vector(tilemovement_res):

assert 'vector' in tilemovement_res[0]['url']


def test_format_urls_url_tilepopulation_has_raster(tilepopulation_res):

assert 'raster' in tilepopulation_res[0]['url']
File renamed without changes.

0 comments on commit cf5c457

Please sign in to comment.