Debugging techniques
# Earthfile
VERSION 0.8
FROM python:3
WORKDIR /code
test:
RUN curl https://raw.githubusercontent.com/jsvine/markovify/master/test/texts/sherlock.txt > /sherlock.txt
COPY generate_phrase.py .
RUN pip3 install markovify
RUN python3 generate_phrase.py# generate_phrase.py
import markovify
text = open('sherlock.txt').read()
text_model = markovify.Text(text)
print(text_model.make_sentence())Debugging integration tests
Demo
Final tips
Last updated