8000 capfd and uneeded imports · dumbledad/adventofcode@30f3381 · GitHub
[go: up one dir, main page]

Skip to content

Commit 30f3381

Browse files
author
Tim Regan
committed
capfd and uneeded imports
1 parent eb5fd52 commit 30f3381

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

2022/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,3 +97,5 @@ if the algorithm passes on the test data but fails on the 'real' data (see [redd
9797
### Day 14
9898

9999
- `extend` instead of `append` adds the items in the list. No need to worry about how to flatten.
100+
- To use the `capfd` fixture pass it into the test function, then call `out, _ = capfd.readouterr()`
101+
to get `stdout` _after_ the `print` statements.

2022/test_day14.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
from day14 import Cave
2-
import pytest
3-
import logging
42

53
filename = 'inputs/2022/day14-test.txt'
64

0 commit comments

Comments
 (0)
0