Skip to content

Commit 9e092ab

Browse files
committed
Add placeholder tests for get_contents function
1 parent 93c9b67 commit 9e092ab

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

tests/get_contents_test.py

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# This file contains tests for `get_contents` which is responsible for
2+
# getting the download urls for the content files of the provided GitHub URL.
3+
4+
import pytest
5+
import requests_mock
6+
7+
from github_dlr.source import get_contents
8+
9+
10+
def test_get_contents_from_dir_success():
11+
# When the provided link is a directory with sub-contents
12+
# it should return all of it's contents as a list containing
13+
# the data in dict.
14+
# TODO: Write the tests
15+
pass
16+
17+
18+
def test_get_content_from_file_success():
19+
# When the provided link is a file object itself.
20+
# it should return a dict instead of a list.
21+
# TODO: Write the tests
22+
pass

0 commit comments

Comments
 (0)