From 5540d273df89bec0bea2bea13731a20ab0c7dfbf Mon Sep 17 00:00:00 2001 From: Ryan Reed Date: Sat, 4 Dec 2021 19:18:08 -0500 Subject: [PATCH] Cleaning up template --- puzzles/TEMPLATE_test_dayXX.py | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/puzzles/TEMPLATE_test_dayXX.py b/puzzles/TEMPLATE_test_dayXX.py index dc4ac8d..4a0433f 100644 --- a/puzzles/TEMPLATE_test_dayXX.py +++ b/puzzles/TEMPLATE_test_dayXX.py @@ -11,12 +11,7 @@ INPUTS_DIR = f"{pathlib.Path(__file__).parent.parent}/inputs" @pytest.fixture def example_data1(): - input_path = f"{INPUTS_DIR}/dayXX-example1.txt" - return aoc.parse(pathlib.Path(input_path).read_text().strip()) - -@pytest.fixture -def example_data2(): - input_path = f"{INPUTS_DIR}/dayXX-example2.txt" + input_path = f"{INPUTS_DIR}/dayXX-example.txt" return aoc.parse(pathlib.Path(input_path).read_text().strip()) @@ -27,13 +22,13 @@ def dayXX_data(): @pytest.mark.skip(reason="Not implemented") -def test_example1(example_data1): - assert aoc.part1(example_data1) == ... +def test_example1(example_data): + assert aoc.part1(example_data) == ... @pytest.mark.skip(reason="Not implemented") -def test_example2(example_data2): - assert aoc.part2(example_data2) == ... +def test_example2(example_data): + assert aoc.part2(example_data) == ... @pytest.mark.skip(reason="Not implemented")