Skip to content

Commit 479d320

Browse files
committed
Fix tests
1 parent 05c1f7e commit 479d320

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/test_cli/test_script.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,11 @@ def tmp_dir_cleanup():
2727

2828
# download GitHub Gist dataset into tmp folder
2929
GISTS_URL = "https://api.github.com/gists"
30-
gists = requests.get(GISTS_URL).json()
30+
gists = requests.get(GISTS_URL).text
31+
gists = json.loads(gists)
3132
for item in gists:
3233
with (tmp_path / f"{item['id']}.gist").open("w") as f:
3334
json.dump(item, f)
34-
del gists
3535

3636
# detect script path
3737
setuptools_script = subprocess.call(["json2models"], shell=True) == 0

0 commit comments

Comments
 (0)