Last active
August 21, 2017 18:39
-
-
Save batmany13/7efff32c35d7df11c5dd341f7ff4dde7 to your computer and use it in GitHub Desktop.
Helper methods
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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