Skip to content

Commit

Permalink
making test_json_parse() work on GitHub runner
Browse files Browse the repository at this point in the history
  • Loading branch information
johentsch committed Jan 16, 2022
1 parent 21cc8b6 commit 73b2ab7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/ms3/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -2102,7 +2102,7 @@ def split_scale_degree(sd, count=False):
count : :obj:`bool`, optional
Pass True to get the accidentals as integer rather than as string.
"""
m = re.match("^(#*|b*)(VII|VI|V|IV|III|II|I|vii|vi|v|iv|iii|ii|i|\d)$", str(sd))
m = re.match(r"^(#*|b*)(VII|VI|V|IV|III|II|I|vii|vi|v|iv|iii|ii|i|\d)$", str(sd))
if m is None:
logger.error(f"{sd} is not a valid scale degree.")
return None, None
Expand Down
1 change: 1 addition & 0 deletions tests/test_parse.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ def test_paths_parse():

def test_json_parse():
paths = ['paths2.json', 'truth/metadata.tsv', 'paths1.json']
os.chdir(os.path.dirname(os.path.realpath(__file__)))
directory = 'test_results'
goal = 72
p = Parse(directory=directory, paths=paths, key='tests', logger_cfg=dict(level='d'))
Expand Down

0 comments on commit 73b2ab7

Please sign in to comment.