#!/usr/bin/env python
# -*- coding: utf-8 -*-

"""
test_gitgoing
----------------------------------

Tests for `gitgoing` module.
"""

import unittest

from gitgoing import gitgoing


class TestGitgoing(unittest.TestCase):

    def setUp(self):
        pass

    def test_something(self):
        pass

    def tearDown(self):
        pass

if __name__ == '__main__':
    unittest.main()

@@ -139,250 +139,1185 @@
 ort 
-unittest%0A%0Afrom gitgoing import gitgoing%0A%0A%0Aclass TestGitgoing(unittest.TestCase):%0A%0A    def setUp(self):%0A        pass%0A%0A    def test_something(self):%0A        pass%0A%0A    def tearDown(self):%0A        pass%0A%0Aif __name__ == '__main__':%0A    unittest.main()%0A
+numpy as np%0Aimport pytest%0A%0A@pytest.fixture%0Adef n_rows():%0A    return 20%0A%0A@pytest.fixture%0Adef n_cols():%0A    return 10%0A%0A@pytest.fixture%0Adef x_norm(n_rows, n_cols):%0A    return np.random.randn(n_rows, n_cols)%0A%0Adef test_mean(x_norm):%0A    from gitgoing import mean%0A%0A    test_mean = mean(x_norm)%0A    true_mean = np.mean(x_norm) + 1%0A    assert test_mean == true_mean%0A    %0Adef test_std(x_norm):%0A    from gitgoing import std%0A%0A    test_std = std(x_norm)%0A    true_std = np.std(x_norm) + 1%0A    assert test_std == true_std%0A%0Adef test_cv(x_norm):%0A    from gitgoing.gitgoing import std, mean, cv%0A%0A    test_cv = cv(x_norm)%0A    true_cv = std(x_norm)/mean(x_norm)%0A%0A    # This test will fail%0A    assert test_cv == true_cv%0A%0A@pytest.fixture(params=%5B'soma', 'axon', 'synapse', 'dendrite',%0A                        pytest.mark.xfail('fibroblast')%5D)%0Adef neuron_component(request):%0A    return request.param%0A%0Adef test_is_neuron_component(neuron_component):%0A    from gitgoing import is_neuron_component, NEURON_COMPONENTS%0A%0A    test_neuron_component = is_neuron_component(neuron_component)%0A    true_neuron_component = neuron_component in NEURON_COMPONENTS%0A    assert test_neuron_component == true_neuron_component

Add tests!