{"action":"created","issue":{"url":"https://api.github.com/repos/VDBWRAIR/redsample/issues/2","labels_url":"https://api.github.com/repos/VDBWRAIR/redsample/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/VDBWRAIR/redsample/issues/2/comments","events_url":"https://api.github.com/repos/VDBWRAIR/redsample/issues/2/events","html_url":"https://github.com/VDBWRAIR/redsample/issues/2","id":69904025,"number":2,"title":"Testing Write Operations","user":{"login":"averagehat","id":5606168,"avatar_url":"https://avatars.githubusercontent.com/u/5606168?v=3","gravatar_id":"","url":"https://api.github.com/users/averagehat","html_url":"https://github.com/averagehat","followers_url":"https://api.github.com/users/averagehat/followers","following_url":"https://api.github.com/users/averagehat/following{/other_user}","gists_url":"https://api.github.com/users/averagehat/gists{/gist_id}","starred_url":"https://api.github.com/users/averagehat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/averagehat/subscriptions","organizations_url":"https://api.github.com/users/averagehat/orgs","repos_url":"https://api.github.com/users/averagehat/repos","events_url":"https://api.github.com/users/averagehat/events{/privacy}","received_events_url":"https://api.github.com/users/averagehat/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-04-21T17:19:01Z","updated_at":"2015-04-21T17:30:43Z","closed_at":null,"body":"`test_samples.py` shows how one can test read operations for this project. What would be a realistic way to test write operations (i.e. the right issues got created, the correct relations got created). I don't see a way to mock out the write operations. \r\n\r\nI could create a test site that gets generated when we test. "},"comment":{"url":"https://api.github.com/repos/VDBWRAIR/redsample/issues/comments/94880424","html_url":"https://github.com/VDBWRAIR/redsample/issues/2#issuecomment-94880424","issue_url":"https://api.github.com/repos/VDBWRAIR/redsample/issues/2","id":94880424,"user":{"login":"averagehat","id":5606168,"avatar_url":"https://avatars.githubusercontent.com/u/5606168?v=3","gravatar_id":"","url":"https://api.github.com/users/averagehat","html_url":"https://github.com/averagehat","followers_url":"https://api.github.com/users/averagehat/followers","following_url":"https://api.github.com/users/averagehat/following{/other_user}","gists_url":"https://api.github.com/users/averagehat/gists{/gist_id}","starred_url":"https://api.github.com/users/averagehat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/averagehat/subscriptions","organizations_url":"https://api.github.com/users/averagehat/orgs","repos_url":"https://api.github.com/users/averagehat/repos","events_url":"https://api.github.com/users/averagehat/events{/privacy}","received_events_url":"https://api.github.com/users/averagehat/received_events","type":"User","site_admin":false},"created_at":"2015-04-21T17:30:43Z","updated_at":"2015-04-21T17:30:43Z","body":"Yes, I saw that. That's not quite I mean though.\r\n\r\nFor example, if I wanted to test make_issue_block_sample, I would want to be able to see that the relation was created afterwards. "}}