Skip to content

Commit dc818b4

Browse files
committed
Debug
1 parent 66678e7 commit dc818b4

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

circfirm/backend/github.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
"""
99

1010
import datetime
11+
import pprint
1112
import re
1213
from typing import List, Tuple, TypedDict
1314

@@ -69,7 +70,9 @@ def get_board_id_list(token: str) -> List[str]:
6970
headers=headers,
7071
)
7172
try:
72-
tree_items: List[GitTreeItem] = response.json()["tree"]
73+
jj = response.json()
74+
pprint.pp(jj)
75+
tree_items: List[GitTreeItem] = jj["tree"]
7376
except KeyError as err:
7477
raise ValueError("Could not parse JSON response, check token") from err
7578
for tree_item in tree_items:

tests/cli/test_cli_query.py

+1
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ def test_query_board_ids(monkeypatch: pytest.MonkeyPatch) -> None:
4141
)
4242

4343
result = RUNNER.invoke(cli, ["query", "board-ids"])
44+
print(result.output)
4445
assert result.exit_code == 0
4546
assert result.output == expected_output
4647

0 commit comments

Comments
 (0)