#9 Moving tests

Merged
ryanreed merged 1 commits from moving-tests into master 3 years ago
  1. +5
    -1
      tests/TEMPLATE_test_dayXX.py
  2. +5
    -1
      tests/test_day01.py
  3. +5
    -1
      tests/test_day02.py
  4. +5
    -4
      tests/test_day03.py
  5. +5
    -1
      tests/test_day04.py
  6. +5
    -1
      tests/test_day05.py
  7. +5
    -1
      tests/test_day06.py
  8. +5
    -1
      tests/test_day07.py
  9. +5
    -1
      tests/test_day08.py

puzzles/TEMPLATE_test_dayXX.py → tests/TEMPLATE_test_dayXX.py View File

@ -5,9 +5,13 @@ Remove the 'Not implemented' marks when ready to run the test
"""
import pathlib
import pytest
import sys
ROOT_DIR = pathlib.Path(__file__).parent.parent
sys.path.append(f"{ROOT_DIR}/puzzles")
import dayXX as aoc
INPUTS_DIR = f"{pathlib.Path(__file__).parent.parent}/inputs"
INPUTS_DIR = f"{ROOT_DIR}/inputs"
@pytest.fixture
def example_data():

puzzles/test_day01.py → tests/test_day01.py View File

@ -1,8 +1,12 @@
import pathlib
import pytest
import sys
ROOT_DIR = pathlib.Path(__file__).parent.parent
sys.path.append(f"{ROOT_DIR}/puzzles")
import day01 as aoc
INPUTS_DIR = f"{pathlib.Path(__file__).parent.parent}/inputs"
INPUTS_DIR = f"{ROOT_DIR}/inputs"
@pytest.fixture
def example_data():

puzzles/test_day02.py → tests/test_day02.py View File

@ -1,8 +1,12 @@
import pathlib
import pytest
import sys
ROOT_DIR = pathlib.Path(__file__).parent.parent
sys.path.append(f"{ROOT_DIR}/puzzles")
import day02 as aoc
INPUTS_DIR = f"{pathlib.Path(__file__).parent.parent}/inputs"
INPUTS_DIR = f"{ROOT_DIR}/inputs"
@pytest.fixture
def example_data():

puzzles/test_day03.py → tests/test_day03.py View File

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

puzzles/test_day04.py → tests/test_day04.py View File

@ -1,8 +1,12 @@
import pathlib
import pytest
import sys
ROOT_DIR = pathlib.Path(__file__).parent.parent
sys.path.append(f"{ROOT_DIR}/puzzles")
import day04 as aoc
INPUTS_DIR = f"{pathlib.Path(__file__).parent.parent}/inputs"
INPUTS_DIR = f"{ROOT_DIR}/inputs"
@pytest.fixture
def example_data():

puzzles/test_day05.py → tests/test_day05.py View File

@ -1,8 +1,12 @@
import pathlib
import pytest
import sys
ROOT_DIR = pathlib.Path(__file__).parent.parent
sys.path.append(f"{ROOT_DIR}/puzzles")
import day05 as aoc
INPUTS_DIR = f"{pathlib.Path(__file__).parent.parent}/inputs"
INPUTS_DIR = f"{ROOT_DIR}/inputs"
@pytest.fixture
def example_data():

puzzles/test_day06.py → tests/test_day06.py View File

@ -1,8 +1,12 @@
import pathlib
import pytest
import sys
ROOT_DIR = pathlib.Path(__file__).parent.parent
sys.path.append(f"{ROOT_DIR}/puzzles")
import day06 as aoc
INPUTS_DIR = f"{pathlib.Path(__file__).parent.parent}/inputs"
INPUTS_DIR = f"{ROOT_DIR}/inputs"
@pytest.fixture
def example_data():

puzzles/test_day07.py → tests/test_day07.py View File

@ -1,8 +1,12 @@
import pathlib
import pytest
import sys
ROOT_DIR = pathlib.Path(__file__).parent.parent
sys.path.append(f"{ROOT_DIR}/puzzles")
import day07 as aoc
INPUTS_DIR = f"{pathlib.Path(__file__).parent.parent}/inputs"
INPUTS_DIR = f"{ROOT_DIR}/inputs"
@pytest.fixture
def example_data():

puzzles/test_day08.py → tests/test_day08.py View File

@ -1,8 +1,12 @@
import pathlib
import pytest
import sys
ROOT_DIR = pathlib.Path(__file__).parent.parent
sys.path.append(f"{ROOT_DIR}/puzzles")
import day08 as aoc
INPUTS_DIR = f"{pathlib.Path(__file__).parent.parent}/inputs"
INPUTS_DIR = f"{ROOT_DIR}/inputs"
@pytest.fixture
def example_data():

Loading…
Cancel
Save