Skip to content

Commit

Permalink
Try adding a mocked request for fetching user credits
Browse files Browse the repository at this point in the history
  • Loading branch information
zansinergise committed Aug 13, 2024
1 parent ad48433 commit ce3bc2c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion tests/setup_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,12 @@ def decorated_function(*args, **kwargs):
"date": "2022-08-01T09:39:18.849Z",
}
],
),
)
responses.add(
responses.GET,
"https://etl.terrascope.be/user",
headers={"content-type": "application/json", "Authorization": f"Bearer mocked_token"}
)

responses.add_passthru(re.compile(".*"))
return func(*args, **kwargs)
Expand Down

0 comments on commit ce3bc2c

Please sign in to comment.