http://www.bogotobogo.com/python/python_unit_testing.php
#python#unit_test
In this chapter, we're going to write and debug a set of functions to convert to and from Hexa numbers.
We can start mapping out what a hexa.py module should do. It will have two main functions, toHexa() and fromHexa(). The toHexa() function should take an integer from 1 to 65536 and return the hexa numeral representation as a string.
https://pypi.python.org/pypi/pytest-bdd
#BDD library for the py.test runner
#pytest-bdd implements a subset of Gherkin language for the automation of the project requirements testing and easier behavioral driven development.
Unlike many other BDD tools it doesn’t require a separate runner and benefits from the power and flexibility of the #pytest. It allows to unify your unit and functional #tests, easier continuous integration server configuration and maximal reuse of the tests setup.
Pytest fixtures written for the #unit_test s can be reused for the setup and actions mentioned in the feature steps with dependency injection, which allows a true BDD just-enough specification of the requirements without maintaining any context object containing the side effects of the Gherkin. imperative declarations.
https://www.pluralsight.com/courses/unit-testing-python
This course will help you to write good #unit_test for your Python code, using tools such as #unittest, #doctest and py.test. Unit tests should improve code quality, and also support future development.
#test
#AI#Artificial_Intelligence
#AJAX
#aiohttp
#Anaconda
#AngularJS
#API
#Atom
#AWS
#asyncio (#Asynchronous)
#audio
#automated_testing
#automation
#atexit
#BeeWare
#Big_Data
#bitcoin
#blockchain
#Bluemix
#Brython
#button
#Celery
#client
#class
#classmethod
#concurrency
#Coroutine
#cron
#CSS
#curl
#data_analysis
#data_mining
#data_processing
#database
#Deep_Learning#deep_learning
#Debian
#decorator
#deploy
#dict
#dispatch
#django
#django_cms
#Django_REST_Framework
#dropdownbox
#Docker
#event
#Firefox
#Flask
#form
#functions
#Generator
#GeoDjango
#git
#Google
#GPU
#GUI
#Gym
#host
#HTML
#httplib
#learn
#Image_processing
#intelligence
#input
#Instagram
#IOT
#iPython
#Jupyter
#lambda
#learn
#License
#Linux
#lists
#machine_learning
#Magenta
#map
#Matplotlib
#Metaprogramming
#Micro_services
#Micropython
#mind
#monitoring
#MongoDB
#modules
#Mozilla
#Multipart
#multi_touch_apps
#multiprocessing
#Nodes
#NoSQL
#numeric_computation
#numerical
#NumPy
#network
#neural_network
#OAuth
#object_serialization
#OCR
#overloading
#package
#parallel
#pipeline
#protocols
#PostGIS
#pyAudioAnalysis
#pycon
#Pyflakes
#PyInstaller
#PyPI
#PyQt
#PySide
#PyTorch
#pytest
#python
#Pyvideo_archives
#Qt
#Raspberry_Pi
#React
#Redis
#random
#request
#Regular_Expressions (#re)
#REST
#RSS
#satellite
#scikit_learn
#SciPy
#scrapy
#searching
#selectbox
#Selenium
#serialization
#server
#sessions
#single_responsibility_principle
#socket
#Spark
#str
#submit
#task
#telegram
#template
#TensorFlow
#test
#text_boxes
#text
#tuples
#unicode
#Universe
#Unix
#unit_test
#urllib
#upload
#uWSGI
#Web
#WSGI