-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlotto_test_suite.py
39 lines (31 loc) · 1.45 KB
/
lotto_test_suite.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
import unittest
from tests.test_lotto_numbers import TestNumbersForTicket, TestNumbersForExtraction, TestFullRuota
from tests.test_lotto_bet import TestBet
from tests.test_lotto_city import TestCity
from tests.test_lotto_money import TestMoney
from tests.test_lotto_ticket import TestTicket
from tests.test_lotto_extraction import TestExtraction
from tests.test_lotto_manager import TestLottoManager
def suite():
suite = unittest.TestSuite()
suite.addTest(TestNumbersForTicket('test_ticket_numbers'))
suite.addTest(TestNumbersForTicket('test_is_amount_valid'))
suite.addTest(TestFullRuota('test_full_ruota'))
suite.addTest(TestNumbersForExtraction('test_extraction_sequence'))
suite.addTest(TestBet('test_bet'))
suite.addTest(TestBet('test_is_bet_valid'))
suite.addTest(TestCity('test_city'))
suite.addTest(TestCity('test_is_city_valid'))
suite.addTest(TestMoney('test_money'))
suite.addTest(TestMoney('test_is_amount_valid'))
suite.addTest(TestTicket('test_ticket'))
suite.addTest(TestTicket('test_is_ticket_valid'))
suite.addTest(TestExtraction('test_extraction'))
suite.addTest(TestLottoManager('test_lotto_manager'))
suite.addTest(TestLottoManager('test_ticket_winning_combinations'))
suite.addTest(TestLottoManager('test_is_ticket_winning'))
suite.addTest(TestLottoManager('test_compute_payout'))
return suite
if __name__ == '__main__':
runner = unittest.TextTestRunner()
runner.run(suite())