Skip to content

Commit 46f39b0

Browse files
committed
Coverage script won't use html for reporting (cause it's broken)
1 parent 20e47fe commit 46f39b0

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

contextshell/CommandParser.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -6,21 +6,21 @@ def tokenize(text: str) -> List[str]:
66
tokens = []
77
tok = ''
88

9-
def end_token():
9+
def finish_token():
1010
nonlocal tok, tokens
1111
if len(tok) > 0:
1212
tokens.append(tok)
1313
tok = ''
1414

1515
for char in text:
1616
if char in "{}:#":
17-
end_token()
17+
finish_token()
1818
tokens.append(char)
1919
elif char.isspace():
20-
end_token()
20+
finish_token()
2121
else:
2222
tok += char
23-
end_token()
23+
finish_token()
2424
return tokens
2525

2626

test_coverage.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
rm -r htmlcov
33
coverage3 erase
44
coverage3 run --source=contextshell -m unittest discover -s tests -t tests -p '*Tests.py'
5-
coverage3 report html && firefox htmlcov/index.html
5+
coverage3 report

0 commit comments

Comments
 (0)