Lesson 7 test_lottery_unit error #479
Answered
by
hnishal
brownandrew1390
asked this question in
Q&A
-
|
I have been getting this error when trying to run Here is my corresponding |
Beta Was this translation helpful? Give feedback.
Answered by
hnishal
Dec 3, 2021
Replies: 1 comment 2 replies
-
|
Hey @brownandrew1390 just add , |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
brownandrew1390
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hey @brownandrew1390 just add ,
return lotteryin 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