Skip to content

Instantly share code, notes, and snippets.

@discdiver
Last active March 6, 2019 16:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save discdiver/972d53da9bba60b467062a52569eadb9 to your computer and use it in GitHub Desktop.
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.
"""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