Skip to content

Commit

Permalink
Merge pull request #30 from king-millez/master
Browse files Browse the repository at this point in the history
ACT optimisations
  • Loading branch information
KipCrossing authored Oct 15, 2020
2 parents 2565cc6 + 96f9fb0 commit db3ea74
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/test_act.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,12 @@

def test_act():
all_the_bills_mate = act_all_bills
random_numbers = [int(random.random()*len(all_the_bills_mate)) for i in range(5)]
bills_sample = [all_the_bills_mate[i] for i in random_numbers]
file = open('act_demo.txt', 'w')

file.write('Found ' + str(len(all_the_bills_mate)) + ' bills:\n\n')
for bill in all_the_bills_mate:
for bill in bills_sample:
write_text = []
bill_data = act_Bill(bill)
write_text.append('Bill Title: ' + bill_data.title + ', ' + bill_data.date)
Expand Down

0 comments on commit db3ea74

Please sign in to comment.