I hereby claim:
- I am ryanc414 on github.
- I am ryancollingham (https://keybase.io/ryancollingham) on keybase.
- I have a public key ASAvgp8W8UPvJBqekJpsLX9D56UmCXTlkl2ZLm7noYDfowo
To claim this, I am signing this object:
| # First test with the default port, then test using a fixed port | |
| # number. | |
| @pytest.fixture(scope="module", params=[None, 9999]) | |
| def app(request): | |
| app = App(port=request.param) | |
| print("Starting app") | |
| app.start() | |
| yield app | |
| print("Stopping app") | |
| app.stop() |
| @pytest.fixture(scope="module") | |
| def app(): | |
| app = App() | |
| print("Starting app") | |
| app.start() | |
| yield app | |
| print("Stopping app") | |
| app.stop() | |
| @pytest.fixture | |
| def app(): | |
| app = App() | |
| print("Starting app") | |
| app.start() | |
| yield app | |
| print("Stopping app") | |
| app.stop() | |
| """Example usage of pytest fixtures.""" | |
| import subprocess | |
| import re | |
| import pytest | |
| import requests | |
| class App: |
| package main | |
| import ( | |
| "flag" | |
| "fmt" | |
| "html" | |
| "net" | |
| "net/http" | |
| ) |
I hereby claim:
To claim this, I am signing this object:
| #!/bin/bash | |
| # Remove merged git branches locally and on remote(s) | |
| set -e | |
| # Script constants | |
| BRANCH_WHITELIST="(\*|master|other-special-branches)" | |
| REMOTES="origin" # Add more remotes here as space-separated list | |
| echo "Deleting merged branches locally" |