Last active
March 6, 2019 16:19
-
-
Save discdiver/972d53da9bba60b467062a52569eadb9 to your computer and use it in GitHub Desktop.
First section of test file for Medium article on adding tests to package.
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
"""Tests for `notebookc` package.""" | |
import pytest | |
from notebookc import notebookc | |
def test_convert(capsys): | |
"""Correct my_name argument prints""" | |
notebookc.convert("Jill") | |
captured = capsys.readouterr() | |
assert "Jall" in captured.out |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment