Skip to content

Commit 485f73e

Browse files
committed
feat(tests): ✅ update tests for specified scope
1 parent 21d74a0 commit 485f73e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tests/test_threads_graph_api.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
def test_threads_get_authorization_url():
1111
api = ThreadsGraphAPI(app_id="id", app_secret="secret", oauth_flow=True)
1212

13-
url, state = api.get_authorization_url()
13+
url, state = api.get_authorization_url(scope=["threads_basic"])
1414
assert (
1515
url
1616
== "https://threads.net/oauth/authorize?response_type=code&client_id=id&redirect_uri=https%3A%2F%2Flocalhost%2F&scope=threads_basic&state=PyFacebook"
@@ -29,7 +29,7 @@ def test_threads_exchange_user_access_token(helpers):
2929
json=helpers.load_json("testdata/base/threads_user_token.json"),
3030
)
3131

32-
r = api.exchange_user_access_token(response=resp)
32+
r = api.exchange_user_access_token(response=resp, scope=["threads_basic"])
3333
assert r["access_token"] == "THQVJ..."
3434

3535

0 commit comments

Comments
 (0)