incazteca / lotto_analysis Goto Github PK
View Code? Open in Web Editor NEWPython scripts that pull lotto information from the Illinois lottery website and then allows a user to run commands listing, sorting, or checking frequency of numbers.
Python scripts that pull lotto information from the Illinois lottery website and then allows a user to run commands listing, sorting, or checking frequency of numbers.
Powerball model test and mega millions model test both fail.
franco@glados:~/development_zone/Lotto_analysis$ tests/model_tests.py
test_create (main.lotto_model_test) ... ok
test_get_draw_date (main.lotto_model_test) ... ok
test_get_numbers (main.lotto_model_test) ... ok
Ran 3 tests in 0.000s
OK
test_create (main.mega_millions_model_test) ... ERROR
test_get_draw_date (main.mega_millions_model_test) ... ok
test_get_mega (main.mega_millions_model_test) ... ERROR
test_get_megaplier (main.mega_millions_model_test) ... ERROR
test_get_numbers (main.mega_millions_model_test) ... ERROR
Traceback (most recent call last):
File "tests/model_tests.py", line 59, in test_create
mega_obj = models.mega(self.num_string,self.draw_date)
AttributeError: 'module' object has no attribute 'mega'
Traceback (most recent call last):
File "tests/model_tests.py", line 67, in test_get_mega
mega_obj = models.mega(self.num_string,self.draw_date)
AttributeError: 'module' object has no attribute 'mega'
Traceback (most recent call last):
File "tests/model_tests.py", line 71, in test_get_megaplier
mega_obj = models.mega(self.num_string,self.draw_date)
AttributeError: 'module' object has no attribute 'mega'
Traceback (most recent call last):
File "tests/model_tests.py", line 63, in test_get_numbers
mega_obj = models.mega(self.num_string,self.draw_date)
AttributeError: 'module' object has no attribute 'mega'
Ran 5 tests in 0.001s
FAILED (errors=4)
test_create (main.powerball_model_test) ... ok
test_get_draw_date (main.powerball_model_test) ... ok
test_get_numbers (main.powerball_model_test) ... FAIL
test_get_powerball (main.powerball_model_test) ... ERROR
Traceback (most recent call last):
File "tests/model_tests.py", line 50, in test_get_powerball
self.assertEqual(powerball_obj.get_powerball(),'06');
AttributeError: powerball instance has no attribute 'get_powerball'
Traceback (most recent call last):
File "tests/model_tests.py", line 46, in test_get_numbers
self.assertEqual(powerball_obj.get_numbers(),['01','02','03','04','05'])
AssertionError: Lists differ: ['01', '02', '03', '04', '05[0... != ['01', '02', '03', '04', '05']
First differing element 4:
05[06]
05
Ran 4 tests in 0.001s
FAILED (failures=1, errors=1)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.