Skip to content

Commit

Permalink
Update pytest for Linux case...
Browse files Browse the repository at this point in the history
  • Loading branch information
cdeline committed Mar 16, 2024
1 parent d87e3a6 commit 317288e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/test_bifacial_radiance.py
Original file line number Diff line number Diff line change
Expand Up @@ -656,8 +656,10 @@ def test_customObj():
customtext='!xform -t 2 1 0 '+customObject, append=True)
with open(trackerdict['2001-01-01_0800']['scenes'][0].radfiles, 'r') as f:
f.readline()
assert f.readline() == ' !xform -t 1 1 0 objects\Marker.rad'
line = f.readline() #Linux uses backslash, windows forward slash...
assert(line == ' !xform -t 1 1 0 objects/Marker.rad') or (line == ' !xform -t 1 1 0 objects\Marker.rad')
with open(trackerdict['2001-01-01_0900']['scenes'][1].radfiles, 'r') as f:
f.readline()
assert f.readline() == ' !xform -t 2 1 0 objects\Marker.rad'
line = f.readline()
assert(line == ' !xform -t 2 1 0 objects/Marker.rad') or (line == ' !xform -t 2 1 0 objects\Marker.rad')

0 comments on commit 317288e

Please sign in to comment.