Skip to content

Commit

Permalink
passing all builder tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sbillinge committed Nov 1, 2023
1 parent d673fc8 commit d9634a9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/test_builders.py
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ def mockreturn(*args, **kwargs):
actual = openpyxl.load_workbook(actual_file)["T&B"]
actual = [str(actual[b]) for b in xls_check]
elif bm == "recent-collabs":
if 'nsf' in actual_file:
if 'nsf' in actual_file.name:
sheet = "NSF COA Template"
else:
sheet = "Collaborators"
Expand All @@ -287,11 +287,12 @@ def mockreturn(*args, **kwargs):
else:
with open(actual_file, "r") as f:
actual = f.read()

if bm == "reimb":
expected = openpyxl.load_workbook(file)["T&B"]
expected = [str(expected[b]) for b in xls_check]
elif bm == "recent-collabs":
if 'nsf' in file:
if 'nsf' in file.name:
sheet = "NSF COA Template"
else:
sheet = "Collaborators"
Expand Down

0 comments on commit d9634a9

Please sign in to comment.