Sign inSign up

jjmerelo/tests-python

By jjmerelo

•Updated almost 9 years ago

Servicio web en Python con el microframework Hug; ejemplo para Infraestructura Virtual de la ETSIIT

Image
0

1.6K

jjmerelo/tests-python repository overview

⁠Tests en Python

Build Status

Clase de prueba para enseƱar a hacer tests en Python.

⁠Instalando lo necesario

pip install -r requirements.txt

⁠Para ejecutar los tests

pytest

⁠Para ejecutar

python3 hugitos.py

o

hug -f hugitos.py

⁠Usando docker

sudo docker build -t minick/mitag .

Y para ejecutarlo

sudo docker run -p 80:8000 -it --rm minick/mitag

-rm es necesario para que se borre una vez ejecutado, -it para que se ejecute el terminal y salga el log y -p 80:8000 es un mapping del puerto del contenedor (80) al del host local (8000).

Se encuentra alojado en https://hub.docker.com/r/jjmerelo/tests-python/⁠

⁠Prueba

Despliegue: https://iv-2017.herokuapp.com/⁠ Contenedor: https://tests-python-syboghyvul.now.sh⁠

Tag summary

Content type

Image

Digest

Size

266.9 MB

Last updated

almost 9 years ago

docker pull jjmerelo/tests-python