Package ready
This commit is contained in:
0
tests/__init__.py
Normal file
0
tests/__init__.py
Normal file
14
tests/test_get_quote.py
Normal file
14
tests/test_get_quote.py
Normal file
@@ -0,0 +1,14 @@
|
||||
from random_quote_generator.quotes import quotes
|
||||
from random_quote_generator import get_quote
|
||||
|
||||
|
||||
def test_get_quote():
|
||||
"""
|
||||
GIVEN
|
||||
WHEN get_quote is called
|
||||
THEN random quote from quotes is returned
|
||||
"""
|
||||
|
||||
quote = get_quote()
|
||||
|
||||
assert quote in quotes
|
||||
Reference in New Issue
Block a user