Skip to content

Commit

Permalink
style: 修改 get_mock_event 变量名
Browse files Browse the repository at this point in the history
  • Loading branch information
BigOrangeQWQ committed Nov 23, 2024
1 parent 525d0d3 commit 5541a15
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/github/event.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,11 @@ def get_mock_event(event_type: type[T], filename: str = "", id: str = "1") -> T:
if event_type not in EVENT_INFO:
raise ValueError(f"Unknown event type: {event_type}")

event_name, _filename = EVENT_INFO[event_type]
event_name, event_filename = EVENT_INFO[event_type]
if filename:
_filename = filename
event_filename = filename

event_path = Path(__file__).parent / "events" / f"{_filename}.json"
event_path = Path(__file__).parent / "events" / f"{event_filename}.json"
event = Adapter.payload_to_event(id, event_name, event_path.read_bytes())

assert isinstance(event, event_type)
Expand Down

0 comments on commit 5541a15

Please sign in to comment.