/noselfs

Decorator for Nose that fetched lfs files

Primary LanguagePythonMIT LicenseMIT

NoseLFS

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