Skip to content

Commit

Permalink
Fixup tests for cross platform compat
Browse files Browse the repository at this point in the history
  • Loading branch information
mmore500 committed Dec 28, 2023
1 parent 248939d commit 98582c1
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions tests/test_tee.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def test():

for ext in '.pdf', '.png':
assert os.path.exists(
f'teeplots/additional=metadata+for=output-filename+hue=region+style=event+viz=lineplot+x=timepoint+y=signal+ext={ext}',
os.path.join('teeplots', f'additional=metadata+for=output-filename+hue=region+style=event+viz=lineplot+x=timepoint+y=signal+ext={ext}'),
)


Expand All @@ -50,7 +50,7 @@ def test_ndarray():

for ext in '.pdf', '.png':
assert os.path.exists(
f'teeplots/viz=lineplot+ext={ext}',
os.path.join('teeplots', f'viz=lineplot+ext={ext}'),
)

def test_datafordigest():
Expand All @@ -73,7 +73,7 @@ def test_datafordigest():

for ext in '.pdf', '.png':
assert os.path.exists(
f'teeplots/additional=metadata+viz=lineplot+ext={ext}',
os.path.join('teeplots', f'additional=metadata+viz=lineplot+ext={ext}'),
)


Expand All @@ -97,7 +97,7 @@ def test_outpath():

for ext in '.pdf', '.png':
assert os.path.exists(
f'teeplots/mydirectory/additional=metadata+viz=lineplot+ext={ext}',
os.path.join('teeplots', 'mydirectory', f'additional=metadata+viz=lineplot+ext={ext}'),
)

def test_longname():
Expand All @@ -121,11 +121,9 @@ def test_longname():
for ext in '.pdf', '.png':
assert os.path.exists(
kn.chop(
f'''teeplots/{
kn.pack({
os.path.join('teeplots', kn.pack({
f'additional{i}' : 'metadata'
for i in range(100)
})
}+viz=lineplot+ext={ext}''',
}) + f'+viz=lineplot+ext={ext}'),
)
)

0 comments on commit 98582c1

Please sign in to comment.