Skip to content

Commit

Permalink
Test loaders
Browse files Browse the repository at this point in the history
  • Loading branch information
rhgrant10 committed Mar 30, 2020
1 parent 65986db commit 97efd6c
Show file tree
Hide file tree
Showing 8 changed files with 2,826 additions and 3 deletions.
20 changes: 20 additions & 0 deletions tests/conftest.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
import os

import pytest


@pytest.fixture(scope='module')
def read_problem_text():
def read(relpath):
directory = os.path.dirname(__file__)
with open(os.path.join(directory, relpath)) as f:
return f.read()
return read


@pytest.fixture(scope='module')
def get_problem_filepath():
def make_path(relpath):
directory = os.path.dirname(__file__)
return os.path.join(directory, relpath)
return make_path

0 comments on commit 97efd6c

Please sign in to comment.