Skip to content

Commit 7ee2616

Browse files
committed
hotfix to close #5
1 parent a9d38a8 commit 7ee2616

2 files changed

Lines changed: 9 additions & 1 deletion

File tree

fcid/run.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ def main():
142142
detailed = True
143143
args.remove("--detailed")
144144
if detailed and by_machine:
145-
sys.stderr("No detailed output available for machine name")
145+
sys.stderr.write("No detailed output available for machine name")
146146
detailed = False
147147
if len(args) != 1:
148148
raise ValueError("USAGE: fcid <flowcell|machine> [--by-machine] [--detailed]")

fcid/test_fcid.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,3 +111,11 @@ def test_integration_bymachine():
111111
)
112112
print(res.decode())
113113
assert res.decode() == "NovaSeq\n"
114+
115+
def test_integration_bymachine_detailed():
116+
res = subprocess.check_output(
117+
["python fcid/run.py A12345 --by-machine --detailed"],
118+
shell=True,
119+
)
120+
print(res.decode())
121+
assert res.decode() == "NovaSeq\n"

0 commit comments

Comments
 (0)