AoC 2020: day6 and day7, added day_# to test function names

Signed-off-by: Ettore Dreucci <ettore.dreucci@gmail.com>
This commit is contained in:
2020-12-07 11:33:57 +01:00
parent be73acf00d
commit 75ef64c796
2 changed files with 4 additions and 6 deletions

View File

@@ -75,18 +75,16 @@ def part2(graph: dict, color: str) -> int:
return count
return search_count(graph, color)-1
def test_input():
def test_input_day_7():
"""pytest testing function"""
graph, reverse_graph = extract(TEST_INPUT)
assert part1(reverse_graph, "shiny gold") == 4
assert part2(graph, "shiny gold") == 32
def test_input_2():
"""pytest testing function"""
graph, _ = extract(TEST_INPUT_2)
assert part2(graph, "shiny gold") == 126
def test_bench(benchmark):
def test_bench_day_7(benchmark):
"""pytest-benchmark function"""
benchmark(main)