Created
October 13, 2018 23:36
-
-
Save marknagelberg/c7d5c71bd8e35c452939ba2192910aec to your computer and use it in GitHub Desktop.
Name fixture in app deploy blog post on testing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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