This repository has been archived on 2024-07-19. You can view files and clone it, but cannot push or open issues or pull requests.
carboncopy/tests/test_utils.py
Marc Cataford c647f9dbd9
Test coverage pt.1 (#4)
* test: config fetch coverage

* ci: add test runner

* test: add test stubs

* chore: move twine and wheel to bootstrap

* infra: add test inv

* refactor: review for testability

* test: use case testing
2020-01-06 23:00:22 -05:00

7 lines
199 B
Python

import pytest
def assert_captured_output_matches_snapshot(capsys, snapshot):
captured_out = capsys.readouterr()
assert captured_out.out == snapshot
assert captured_out.err == snapshot