Skip to main content

Learning Libraries from tests by David Arroyo MEnéndez

Project description

Logo

img

Introduction

Many people needs little snippets of source to make exercises and learn a library. You can store your exercises in a repository, such as, https://github.com/davidam/python-examples.git. It's useful, but if the library is suffering changes or changing dependencies, perhaps your snippets is not running.

In this project, we are experimenting a way, to store the snippets in files to execute unit test. So, the snippets is easy to maintain.

Install and Check tests in a Library

If you want python virtual environment

$ python3 -m venv /tmp/dl
$ cd /tmp/dl
$ source bin/activate

Now, you can install with pip

$ pip install --upgrade pip
$ pip3 install damelibraries

Checking my snippets:

$ cd /tmp/dl/lib/python3.5/site-packages/damealgorithms
$ nosetests3 tests
$ cd /tmp/dl/lib/python3.5/site-packages/damejson
$ nosetests3 tests
$ cd /tmp/dl/lib/python3.5/site-packages/damepandas
$ nosetests3 tests
$ cd /tmp/dl/lib/python3.5/site-packages/damenltk
$ nosetests3 tests
$ cd /tmp/dl/lib/python3.5/site-packages/damenumpy
$ nosetests3 tests
$ cd /tmp/dl/lib/python3.5/site-packages/damescipy
$ nosetests3 tests

License

This document is under a Creative Commons Attribution 4.0 International

img

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

damelibraries-0.0.10.tar.gz (1.6 MB view details)

Uploaded Source

File details

Details for the file damelibraries-0.0.10.tar.gz.

File metadata

  • Download URL: damelibraries-0.0.10.tar.gz
  • Upload date:
  • Size: 1.6 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.18.4 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.20.0 CPython/3.5.1+

File hashes

Hashes for damelibraries-0.0.10.tar.gz
Algorithm Hash digest
SHA256 d1e09fdbf14ff7169ce2456cc06906495d9caee0c3d91ab0bb50904a16d25529
MD5 2cedb116f1f8e79cbd15c28f62efbf41
BLAKE2b-256 f3daa74f492598d614525b79dcb0f0200bfe11d2d624a5bbfee35e1c897ae051

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page