sns-sdks / python-facebook

A simple Python wrapper for facebook graph api :sparkles: :cake: :sparkles: .
https://sns-sdks.github.io/python-facebook/
330 stars 87 forks source link

How do I mock the GraphAPI class? #216

Closed moonman239 closed 1 year ago

moonman239 commented 1 year ago

Hi community,

I have a function that uses the Graph API.

I would like to write unit tests to make sure the function works as expected, using Python's unittest module. I'd like the best way to mock this class.

moonman239 commented 1 year ago

I just realized I may have the wrong repo.

I use facebook-sdk==3.1.0

MerleLiuKun commented 1 year ago

:)