Skip to main content

A nosetest add-on that gets lfs files

Project description

https://travis-ci.org/grantstephens/noselfs.svg?branch=master

This provides a nice little decorator that extends the nose attrib decorator and adds a git lfs argument which will pull any needed lfs files for the test if they haven’t been fetched already

Usage

Just use the focus decorator in your tests:

from noselfs import noselfs

@noselfs('filename.ext', 'data', 'unit')
def test_my_amazing_feature(file_name):
    with open(file_name) as open_file:
        # Whatever
    assert_is_awesome(my_feature)

How it works

Installation

Use pip!:

pip install noselfs

Or if you’re developing it:

pip install -e .
pip install -e ".[tests]"

Tests

TODO

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

noselfs-0.0.9.tar.gz (3.4 kB view hashes)

Uploaded Source

Built Distributions

noselfs-0.0.9-py3-none-any.whl (4.7 kB view hashes)

Uploaded Python 3

noselfs-0.0.9-py2-none-any.whl (4.7 kB view hashes)

Uploaded Python 2

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