{"action":"closed","issue":{"url":"https://api.github.com/repos/facebook/facebook-python-ads-sdk/issues/244","repository_url":"https://api.github.com/repos/facebook/facebook-python-ads-sdk","labels_url":"https://api.github.com/repos/facebook/facebook-python-ads-sdk/issues/244/labels{/name}","comments_url":"https://api.github.com/repos/facebook/facebook-python-ads-sdk/issues/244/comments","events_url":"https://api.github.com/repos/facebook/facebook-python-ads-sdk/issues/244/events","html_url":"https://github.com/facebook/facebook-python-ads-sdk/issues/244","id":172806009,"number":244,"title":"Support for testing against this project without touching live accounts.","user":{"login":"ghedsouza","id":687486,"avatar_url":"https://avatars.githubusercontent.com/u/687486?v=3","gravatar_id":"","url":"https://api.github.com/users/ghedsouza","html_url":"https://github.com/ghedsouza","followers_url":"https://api.github.com/users/ghedsouza/followers","following_url":"https://api.github.com/users/ghedsouza/following{/other_user}","gists_url":"https://api.github.com/users/ghedsouza/gists{/gist_id}","starred_url":"https://api.github.com/users/ghedsouza/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ghedsouza/subscriptions","organizations_url":"https://api.github.com/users/ghedsouza/orgs","repos_url":"https://api.github.com/users/ghedsouza/repos","events_url":"https://api.github.com/users/ghedsouza/events{/privacy}","received_events_url":"https://api.github.com/users/ghedsouza/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-08-23T21:02:34Z","updated_at":"2016-08-25T23:25:12Z","closed_at":"2016-08-25T23:25:12Z","body":"I am about to start using this repo for a project, and I would like some advice regarding how I can write unit/integration tests for a project that depends on `facebook-python-ads-sdk`. Integration tests are vital for ensuring quality, so it's really important to get this right.\r\n\r\nThe only methods I can see right now are:\r\n\r\n1. Create a test version of a Facebook user account, an App, an Ads account (which unfortunately seems to require a credit card), and a Facebook Page, and then use these within the test environment for integration tests for my own project (after generating all the required tokens). This would be fine, but I'm not sure if this is even technically allowed by Facebook according to their own TOS. The requirement for a credit card to setup an Ads account also is not ideal for use in a testing environment.\r\n\r\n2. Mock everything out. This of course requires no account setup on Facebook, and would allow me to test my own code, but is going be hard to maintain, and of course offers no guarantees that my project will actually work with the Marketing API.\r\n\r\nI would appreciate some direction from the Facebook team here, or anyone else who is working with this repo. cc @m-vdb."}}
{"actor":{"display_login":"JiamingFB"}}