-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add placeholder tests for get_contents function
- Loading branch information
1 parent
93c9b67
commit 9e092ab
Showing
1 changed file
with
22 additions
and
0 deletions.
There are no files selected for viewing
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,22 @@ | ||
# This file contains tests for `get_contents` which is responsible for | ||
# getting the download urls for the content files of the provided GitHub URL. | ||
|
||
import pytest | ||
import requests_mock | ||
|
||
from github_dlr.source import get_contents | ||
|
||
|
||
def test_get_contents_from_dir_success(): | ||
# When the provided link is a directory with sub-contents | ||
# it should return all of it's contents as a list containing | ||
# the data in dict. | ||
# TODO: Write the tests | ||
pass | ||
|
||
|
||
def test_get_content_from_file_success(): | ||
# When the provided link is a file object itself. | ||
# it should return a dict instead of a list. | ||
# TODO: Write the tests | ||
pass |