Пример #1
0
def test_quote_length():
    quote = get_quote()
    assert len(quote) != 0
Пример #2
0
def test_get_quote():
    assert get_quote() != ""
Пример #3
0
import streamlit as st

from bbquote.lib import get_quote

author, quote = get_quote(
)  # assuming the function returns an author and a quote

f"{quote}, {author}"
Пример #4
0
import streamlit as st

from bbquote.lib import get_quote

result = get_quote()
author = result['author']
quote = result['quote']  # assuming the function returns an author and a quote

st.write('# Welcome to the bbquote interface')
st.write(f"{quote}, {author}")
Пример #5
0
def test_quote():
    assert len(get_quote()) > 0
Пример #6
0
import streamlit as st
from bbquote.lib import get_quote

"# I am the main heading"
"## I am the secondary heading"
"### I am a subtitle"

123

"I am a string"

st.write(get_quote())
Пример #7
0
def test_get_quote_is_list():
    quote = get_quote()
    assert isinstance(quote, dict)