Skip to content

Instantly share code, notes, and snippets.

@batmany13
Last active August 21, 2017 18:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save batmany13/7efff32c35d7df11c5dd341f7ff4dde7 to your computer and use it in GitHub Desktop.
Save batmany13/7efff32c35d7df11c5dd341f7ff4dde7 to your computer and use it in GitHub Desktop.
Helper methods
func setupTest(t *testing.T) *require.Assertions {
assert := require.New(t)
cleanupTestCalls()
setupTestSynq()
return assert
}
func cleanupTestCalls() {
db.MustExec("TRUNCATE api_calls")
}
func setupTestSynq() {
url := test_helper.SetupServer()
sApi.Url = url
sApi.Key = test_helper.API_KEY
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment