Skip to content

Instantly share code, notes, and snippets.

@sivakov512
Created May 10, 2024 10:10
Show Gist options
  • Save sivakov512/1b66e021d88776701226ad2804fb1c61 to your computer and use it in GitHub Desktop.
Save sivakov512/1b66e021d88776701226ad2804fb1c61 to your computer and use it in GitHub Desktop.
@pytest.fixture
def my_pretty_fixture():
def inner(url_part, param):
url = f"{url_part}/azaza/{param}"
response = requests.post(url)
return response.json()
return inner
def test_puk(my_pretty_fixture):
got = my_pretty_fixture("url/part", "param0")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment