Skip to content
Learning python3 libraries with tests
Python
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
damelibraries.egg-info
damelibraries
dist
LICENSE
README.org
requirements.txt
setup.py

README.org

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 pandas snippets (damepandas)

$ cd /tmp/dl/lib/python3.5/site-packages/damepandas
$ nosetests3 tests

License

This document is under a Creative Commons Attribution 4.0 International

http://i.creativecommons.org/l/by/3.0/80x15.png

You can’t perform that action at this time.