We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 93c9b67 commit 9e092abCopy full SHA for 9e092ab
tests/get_contents_test.py
@@ -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
22
0 commit comments