Merge pull request #25 from idle-org/features/update_spidey_test
updated spidey test
This commit is contained in:
commit
3b3cc1309e
|
|
@ -25,20 +25,22 @@ class SpideyTest(test_template.TestTemplate):
|
||||||
self.is_infected = False
|
self.is_infected = False
|
||||||
lines = 0
|
lines = 0
|
||||||
with open(os.path.join(paths[0], "index.js")) as f:
|
with open(os.path.join(paths[0], "index.js")) as f:
|
||||||
for line in f:
|
for _ in f:
|
||||||
lines += 1 # TODO: you don't actually need to count the lines, you can just check if it's more than 1
|
lines += 1
|
||||||
if lines > 1:
|
if lines > 1:
|
||||||
self.is_infected = True
|
self.is_infected = True
|
||||||
|
break
|
||||||
|
|
||||||
self.progress = 50
|
self.progress = 50
|
||||||
# time.sleep(5)
|
# time.sleep(5)
|
||||||
lines = 0
|
lines = 0
|
||||||
|
|
||||||
with open(os.path.join(paths[1], "index.js")) as f:
|
with open(os.path.join(paths[1], "index.js")) as f:
|
||||||
for line in f:
|
for _ in f:
|
||||||
lines += 1 # TODO: you don't actually need to count the lines, you can just check if it's more than 1
|
lines += 1
|
||||||
if lines > 1:
|
if lines > 1:
|
||||||
self.is_infected = True
|
self.is_infected = True
|
||||||
|
break
|
||||||
|
|
||||||
if self.is_infected:
|
if self.is_infected:
|
||||||
return self.finish(
|
return self.finish(
|
||||||
|
|
|
||||||
Reference in New Issue