Skip to content

Commit 6f6fa42

Browse files
refactor: update the test example
1 parent 2d7b81c commit 6f6fa42

1 file changed

Lines changed: 11 additions & 11 deletions

File tree

examples/agency.py

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
1-
# import onebusaway
1+
import onebusaway
22

33

4-
# def main_sync():
5-
# client = onebusaway.OnebusawaySDK(api_key="TEST")
6-
# agency = client.agency.retrieve("1")
4+
def main_sync():
5+
client = onebusaway.OnebusawaySDK(api_key="TEST")
6+
agency = client.agency.retrieve("1")
77

8-
# if agency.data and agency.data.entry:
9-
# print(agency.data.entry)
10-
# else:
11-
# print("Agency data or entry is None.")
8+
if agency.data and agency.data.entry:
9+
print(agency.data.entry)
10+
else:
11+
print("Agency data or entry is None.")
1212

1313

14-
# if __name__ == "__main__":
15-
# print("Running synchronous main function:")
16-
# main_sync()
14+
if __name__ == "__main__":
15+
print("Running synchronous main function:")
16+
main_sync()
1717

1818
# import asyncio
1919
# import sys

0 commit comments

Comments
 (0)