Skip to content

Instantly share code, notes, and snippets.

@marknagelberg
Created October 13, 2018 23:36
Show Gist options
  • Save marknagelberg/c7d5c71bd8e35c452939ba2192910aec to your computer and use it in GitHub Desktop.
Save marknagelberg/c7d5c71bd8e35c452939ba2192910aec to your computer and use it in GitHub Desktop.
Name fixture in app deploy blog post on testing
import pytest
from app.models import Name
@pytest.fixture(scope='module')
def new_name():
name = Name(name='Mark')
return name
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment