Skip to content

Commit 28604c6

Browse files
committed
Update tests
1 parent 23a8608 commit 28604c6

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ def run_tests(self):
3939
},
4040
install_requires=required,
4141
cmdclass={"test": PyTest},
42-
tests_require=["pytest"],
42+
tests_require=["pytest", "requests"],
4343
project_urls={
4444
'Source': URL
4545
},

test/test_cli/test_script.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ def tmp_dir_cleanup():
2828
GISTS_URL = "https://api.github.com/gists"
2929
gists = requests.get(GISTS_URL).text
3030
gists = json.loads(gists)
31+
assert type(gists) is list and gists and type(gists[0]) is dict
32+
3133
for item in gists:
3234
with (tmp_path / f"{item['id']}.gist").open("w") as f:
3335
json.dump(item, f)

0 commit comments

Comments
 (0)