This repository has been archived by the owner on Jun 3, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #35 from hamishgibbs/coverage_path
Fix coverage path issues
- Loading branch information
Showing
4 changed files
with
40 additions
and
1 deletion.
There are no files selected for viewing
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
import pytest | ||
from pull_fb import credentials | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.