Code Monkey home page Code Monkey logo

lotto_analysis's People

Contributors

franco-reyes avatar incazteca avatar

Watchers

 avatar

lotto_analysis's Issues

Model Tests Failures

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

ERROR: test_create (main.mega_millions_model_test)

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'

ERROR: test_get_mega (main.mega_millions_model_test)

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'

ERROR: test_get_megaplier (main.mega_millions_model_test)

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'

ERROR: test_get_numbers (main.mega_millions_model_test)

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

ERROR: test_get_powerball (main.powerball_model_test)

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'

FAIL: test_get_numbers (main.powerball_model_test)

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

  • ['01', '02', '03', '04', '05[06]']
    ? ----
  • ['01', '02', '03', '04', '05']

Ran 4 tests in 0.001s

FAILED (failures=1, errors=1)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.