-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
finalised download.py and restored tests
- Loading branch information
1 parent
2ae2b7e
commit 35a67fb
Showing
11 changed files
with
80 additions
and
59 deletions.
There are no files selected for viewing
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
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
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
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
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
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,32 @@ | ||
import pytest | ||
|
||
from locations.folder import FolderBase as Folder | ||
|
||
class Test_Folder(): | ||
def test_repr(self): | ||
assert repr(Folder(2015, 5)) | ||
|
||
def test_get_folder_methods(self): | ||
assert Folder(2015, 5).get_processed_folder().exists() | ||
assert Folder(2015, 5).get_interim_folder().exists() | ||
assert Folder(2015, 5).get_raw_folder().exists() | ||
assert Folder(2015, 5).get_interim_csv().exists() | ||
|
||
def test_out_of_range_year_does_not_raises_error(self): | ||
#with pytest.raises(ValueError): | ||
Folder(2030, 1) | ||
|
||
# skipping | ||
|
||
@pytest.mark.skip(reason="not testing maintenance scripts yet") | ||
def test_md(folder): | ||
assert False | ||
|
||
@pytest.mark.skip(reason="not testing maintenance scripts yet") | ||
def test_copy_latest(): | ||
assert False | ||
|
||
|
||
if __name__ == "__main__": | ||
pytest.main([__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
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