Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tests: make sure required directory exists (= 2 failing tests fixed) #25

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions tests/test_cantus_examples.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,16 @@
from chant21.cantus import convertCantusData

class TestCantusExamplesConversion(unittest.TestCase):
_tmp_dir = 'tmp/cantus-html'

def setUp(self):
os.makedirs(self._tmp_dir, exist_ok=True)

def tearDown(self):
dir = self._tmp_dir
for i in os.listdir(dir):
os.remove(os.path.join(dir, i))

def test_parse_volpiano_examples(self):
"""Test whether the volpiano of all Cantus examples can be parsed"""
examples = pd.read_csv('chant21/examples/cantus-volpiano-examples.csv', index_col=0)
Expand Down