| @ -1,8 +1,12 @@ | |||||
| import pathlib | import pathlib | ||||
| import pytest | import pytest | ||||
| import sys | |||||
| ROOT_DIR = pathlib.Path(__file__).parent.parent | |||||
| sys.path.append(f"{ROOT_DIR}/puzzles") | |||||
| import day01 as aoc | import day01 as aoc | ||||
| INPUTS_DIR = f"{pathlib.Path(__file__).parent.parent}/inputs" | |||||
| INPUTS_DIR = f"{ROOT_DIR}/inputs" | |||||
| @pytest.fixture | @pytest.fixture | ||||
| def example_data(): | def example_data(): | ||||
| @ -1,8 +1,12 @@ | |||||
| import pathlib | import pathlib | ||||
| import pytest | import pytest | ||||
| import sys | |||||
| ROOT_DIR = pathlib.Path(__file__).parent.parent | |||||
| sys.path.append(f"{ROOT_DIR}/puzzles") | |||||
| import day02 as aoc | import day02 as aoc | ||||
| INPUTS_DIR = f"{pathlib.Path(__file__).parent.parent}/inputs" | |||||
| INPUTS_DIR = f"{ROOT_DIR}/inputs" | |||||
| @pytest.fixture | @pytest.fixture | ||||
| def example_data(): | def example_data(): | ||||
| @ -1,11 +1,12 @@ | |||||
| """ | |||||
| Remove the 'Not implemented' marks when ready to run the test | |||||
| """ | |||||
| import pathlib | import pathlib | ||||
| import pytest | import pytest | ||||
| import sys | |||||
| ROOT_DIR = pathlib.Path(__file__).parent.parent | |||||
| sys.path.append(f"{ROOT_DIR}/puzzles") | |||||
| import day03 as aoc | import day03 as aoc | ||||
| INPUTS_DIR = f"{pathlib.Path(__file__).parent.parent}/inputs" | |||||
| INPUTS_DIR = f"{ROOT_DIR}/inputs" | |||||
| @pytest.fixture | @pytest.fixture | ||||
| def example_data(): | def example_data(): | ||||
| @ -1,8 +1,12 @@ | |||||
| import pathlib | import pathlib | ||||
| import pytest | import pytest | ||||
| import sys | |||||
| ROOT_DIR = pathlib.Path(__file__).parent.parent | |||||
| sys.path.append(f"{ROOT_DIR}/puzzles") | |||||
| import day04 as aoc | import day04 as aoc | ||||
| INPUTS_DIR = f"{pathlib.Path(__file__).parent.parent}/inputs" | |||||
| INPUTS_DIR = f"{ROOT_DIR}/inputs" | |||||
| @pytest.fixture | @pytest.fixture | ||||
| def example_data(): | def example_data(): | ||||
| @ -1,8 +1,12 @@ | |||||
| import pathlib | import pathlib | ||||
| import pytest | import pytest | ||||
| import sys | |||||
| ROOT_DIR = pathlib.Path(__file__).parent.parent | |||||
| sys.path.append(f"{ROOT_DIR}/puzzles") | |||||
| import day05 as aoc | import day05 as aoc | ||||
| INPUTS_DIR = f"{pathlib.Path(__file__).parent.parent}/inputs" | |||||
| INPUTS_DIR = f"{ROOT_DIR}/inputs" | |||||
| @pytest.fixture | @pytest.fixture | ||||
| def example_data(): | def example_data(): | ||||
| @ -1,8 +1,12 @@ | |||||
| import pathlib | import pathlib | ||||
| import pytest | import pytest | ||||
| import sys | |||||
| ROOT_DIR = pathlib.Path(__file__).parent.parent | |||||
| sys.path.append(f"{ROOT_DIR}/puzzles") | |||||
| import day06 as aoc | import day06 as aoc | ||||
| INPUTS_DIR = f"{pathlib.Path(__file__).parent.parent}/inputs" | |||||
| INPUTS_DIR = f"{ROOT_DIR}/inputs" | |||||
| @pytest.fixture | @pytest.fixture | ||||
| def example_data(): | def example_data(): | ||||
| @ -1,8 +1,12 @@ | |||||
| import pathlib | import pathlib | ||||
| import pytest | import pytest | ||||
| import sys | |||||
| ROOT_DIR = pathlib.Path(__file__).parent.parent | |||||
| sys.path.append(f"{ROOT_DIR}/puzzles") | |||||
| import day07 as aoc | import day07 as aoc | ||||
| INPUTS_DIR = f"{pathlib.Path(__file__).parent.parent}/inputs" | |||||
| INPUTS_DIR = f"{ROOT_DIR}/inputs" | |||||
| @pytest.fixture | @pytest.fixture | ||||
| def example_data(): | def example_data(): | ||||
| @ -1,8 +1,12 @@ | |||||
| import pathlib | import pathlib | ||||
| import pytest | import pytest | ||||
| import sys | |||||
| ROOT_DIR = pathlib.Path(__file__).parent.parent | |||||
| sys.path.append(f"{ROOT_DIR}/puzzles") | |||||
| import day08 as aoc | import day08 as aoc | ||||
| INPUTS_DIR = f"{pathlib.Path(__file__).parent.parent}/inputs" | |||||
| INPUTS_DIR = f"{ROOT_DIR}/inputs" | |||||
| @pytest.fixture | @pytest.fixture | ||||
| def example_data(): | def example_data(): | ||||