Skip to content

Commit

Permalink
pretty print for api tests
Browse files Browse the repository at this point in the history
  • Loading branch information
pablouser1 committed Dec 29, 2023
1 parent 4da7160 commit 6ef6f11
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tools/api_m.example.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
import json
import sys
sys.path.append('..') # Add parent path to searchable list

from resources.lib.api import Api

def prettyPrint(data):
print(json.dumps(data, indent=2))

DOMAIN = "es"

api = Api(DOMAIN)

# .. You can keep testing the api here
prettyPrint(api.collections())

0 comments on commit 6ef6f11

Please sign in to comment.