User Tools

Site Tools


python_testing

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
python_testing [2019/12/11 21:51] – created jrsetipython_testing [2019/12/21 18:52] (current) jrseti
Line 2: Line 2:
  
 python setup.py test python setup.py test
 +
 +====Example====
 +
 +flux_densities/tests/test.py:
 +
 +<code>
 +from unittest import TestCase
 +
 +import flux_densities as fd
 +
 +class TestFluxDensities(TestCase):
 +
 +    def test_souurce_list(self):
 +        source_list = fd.get_sources()
 +        assert(len(source_list) == 20)
 +</code>
python_testing.1576101093.txt.gz · Last modified: 2019/12/11 21:51 by jrseti