Skip to content

Lesson 7 test_lottery_unit error #479

Answered by hnishal
brownandrew1390 asked this question in Q&A
Discussion options

You must be logged in to vote

Hey @brownandrew1390 just add , return lottery in your deploy_lottery() method located in deploy_lottery.py.
Its showing AttributeError: 'NoneType' object has no attribute 'getEntranceFee' because 'lottery' in test_lottery_unit.py hasnt been initialized

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@brownandrew1390
Comment options

@cromewar
Comment options

Answer selected by brownandrew1390
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants