@@ -0,0 +1,658 @@
+import requests%0Aimport os%0Aimport signal%0Aimport subprocess%0Aimport time%0Afrom homer import BOUNTYFUNDING_HOME%0A%0A%0Adef setup():%0A%09global bountyfunding_process%0A%09print(%22Starting BountyFunding API...%22)%0A%09bountyfunding_process = subprocess.Popen(%0A%09%09%5B%22python%22, %22src/bountyfunding_api.py%22%5D, cwd=BOUNTYFUNDING_HOME, %0A%09%09preexec_fn=os.setsid%0A%09)%0A%09time.sleep(2)%09%0A%0Adef teardown():%0A%09global bountyfunding_process%0A%09print(%22Stopping BountyFunding API...%22)%0A%09# Based on http://stackoverflow.com/a/4791612/1106546, won't work on Windows%0A%09os.killpg(bountyfunding_process.pid, signal.SIGKILL)%0A%0A%0Adef test():%0A%09r = requests.get(%22http://localhost:5000/issue/1%22)%0A%09assert(r.status_code == 200)%0A

Create integration test