Skip to content

Instantly share code, notes, and snippets.

@dmulter
Created July 15, 2019 01:28
Show Gist options
  • Save dmulter/cd735f4e7fdbd31b9cf7121935ba9fc5 to your computer and use it in GitHub Desktop.
Save dmulter/cd735f4e7fdbd31b9cf7121935ba9fc5 to your computer and use it in GitHub Desktop.
pytest code
def get_fixture(name):
module = import_module('.conftest', 'tests')
return getattr(module, name)()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment