Skip to main content

Learning Libraries from tests by David Arroyo MEnéndez

Project description

<div id=”table-of-contents”> <h2>Table of Contents</h2> <div id=”text-table-of-contents”> <ul> <li><a href=”#sec-1”>1. Logo</a></li> <li><a href=”#sec-2”>2. Introduction</a></li> <li><a href=”#sec-3”>3. Install and Check tests in a Library</a></li> <li><a href=”#sec-4”>4. Music</a></li> <li><a href=”#sec-5”>5. License</a></li> </ul> </div> </div>

# Logo<a id=”sec-1” name=”sec-1”></a>

![img](https://upload.wikimedia.org/wikipedia/commons/thumb/6/65/Magpie_in_Madrid_%28Spain%29_91.jpg/636px-Magpie_in_Madrid_%28Spain%29_91.jpg)

# Introduction<a id=”sec-2” name=”sec-2”></a>

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<a id=”sec-3” name=”sec-3”></a>

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

# Music<a id=”sec-4” name=”sec-4”></a>

# License<a id=”sec-5” name=”sec-5”></a>

This document is under a [Creative Commons Attribution 4.0 International](http://creativecommons.org/licenses/by/4.0/deed)

[![img](http://i.creativecommons.org/l/by/3.0/80x15.png)](http://creativecommons.org/licenses/by/4.0/deed)

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.21.tar.gz (1.6 MB view details)

Uploaded Source

File details

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

File metadata

  • Download URL: damelibraries-0.0.21.tar.gz
  • Upload date:
  • Size: 1.6 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.23.0 setuptools/49.3.1 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.6

File hashes

Hashes for damelibraries-0.0.21.tar.gz
Algorithm Hash digest
SHA256 c76dbe2c118036e95d75292ae9595405490d9b9ec60ac82f7ef0820381607053
MD5 89ff6f18c05e63d93021d62b28ec2ff8
BLAKE2b-256 2584d49be9a45ffe1c1954e7642a446bfc30170e2cbd94f453f9a5a9606e03be

See more details on using hashes here.

Supported by

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