Skip to content

Instantly share code, notes, and snippets.

@Kalimaha
Created December 9, 2017 23:27
Show Gist options
  • Select an option

  • Save Kalimaha/b63efcb509ae688b0bc1efa51373e171 to your computer and use it in GitHub Desktop.

Select an option

Save Kalimaha/b63efcb509ae688b0bc1efa51373e171 to your computer and use it in GitHub Desktop.
class GrillChefPactHelper(PactHelper):
test_port = 8080
process = None
def setup(self):
cmd = 'gunicorn start:app -w 3 -b :8080 --log-level error'
self.process = subprocess.Popen(cmd, shell=True)
def tear_down(self):
self.process.kill()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment