예제 #1
0
def tst():
    """Run module tests,  for now just doctests only."""
    # import unittest
    # suite = unittest.TestLoader().loadTestsFromTestCase(TestHeavyClient)
    # unittest.TextTestRunner().run(suite)

    from crds.tests import test_heavy_client, tstmod
    return tstmod(test_heavy_client)
예제 #2
0
def tst():
    """Run module tests,  for now just doctests only."""
    import unittest
    suite = unittest.TestLoader().loadTestsFromTestCase(TestRmap)
    unittest.TextTestRunner().run(suite)

    from crds.tests import test_rmap, tstmod
    return tstmod(test_rmap)
예제 #3
0
def tst():
    """Run module tests,  for now just doctests only."""
    # import unittest
    # suite = unittest.TestLoader().loadTestsFromTestCase(TestHeavyClient)
    # unittest.TextTestRunner().run(suite)

    from crds.tests import test_heavy_client, tstmod
    return tstmod(test_heavy_client)
예제 #4
0
def tst():
    """Run module tests,  for now just doctests only."""
    import unittest
    suite = unittest.TestLoader().loadTestsFromTestCase(TestRmap)
    unittest.TextTestRunner().run(suite)

    from crds.tests import test_rmap, tstmod
    return tstmod(test_rmap)
예제 #5
0
def main():
    """Run module tests,  for now just doctests only.
    
    test_config.setup() and cleanup() are done inline above because bracketing
    the tests here does not get picked up by nose test discovery.  Combining
    tests into one giant docstring works but is hard to analyze and debug when
    things go wrong.
    """
    from crds.tests import test_diff, tstmod
    return tstmod(test_diff)
예제 #6
0
def main():
    """Run module tests,  for now just doctests only.

    test_config.setup() and cleanup() are done inline above because bracketing
    the tests here does not get picked up by nose test discovery.  Combining
    tests into one giant docstring works but is hard to analyze and debug when
    things go wrong.
    """
    from crds.tests import test_list, tstmod
    return tstmod(test_list)
예제 #7
0
def main():
    """Run module tests,  for now just doctests only."""
    import unittest

    suite = unittest.TestLoader().loadTestsFromTestCase(TestHSTTpnInfoClass)
    unittest.TextTestRunner().run(suite)

    suite = unittest.TestLoader().loadTestsFromTestCase(TestCertify)
    unittest.TextTestRunner().run(suite)

    from crds.tests import test_certify, tstmod
    return tstmod(test_certify)
예제 #8
0
파일: test_certify.py 프로젝트: nden/crds
def main():
    """Run module tests,  for now just doctests only."""
    import unittest

    suite = unittest.TestLoader().loadTestsFromTestCase(TestHSTTpnInfoClass)
    unittest.TextTestRunner().run(suite)

    suite = unittest.TestLoader().loadTestsFromTestCase(TestCertify)
    unittest.TextTestRunner().run(suite)

    from crds.tests import test_certify, tstmod
    return tstmod(test_certify)
예제 #9
0
def main():
    """Run module tests,  for now just doctests only."""
    from crds.tests import test_newcontext, tstmod
    import unittest

    suite = unittest.TestLoader().loadTestsFromTestCase(TestNewContext)
    unittest.TextTestRunner().run(suite)

    old_state = test_config.setup()
    result = tstmod(test_newcontext)
    test_config.cleanup(old_state)

    return result
예제 #10
0
def main():
    """Run module tests,  for now just doctests only.

    test_config.setup() and cleanup() are done inline above because bracketing
    the tests here does not get picked up by nose test discovery.  Combining
    tests into one giant docstring works but is hard to analyze and debug when
    things go wrong.
    """
    import unittest
    suite = unittest.TestLoader().loadTestsFromTestCase(TestCmdline)
    unittest.TextTestRunner().run(suite)

    suite = unittest.TestLoader().loadTestsFromTestCase(TestContextsScript)
    unittest.TextTestRunner().run(suite)

    if sys.version_info >= (3,0,0):
        from crds.tests import tstmod, test_cmdline
        return tstmod(test_cmdline)
예제 #11
0
def main():
    """Run module tests,  for now just doctests only."""
    from crds.tests import test_rowdiff, tstmod
    return tstmod(test_rowdiff)
예제 #12
0
def tst():
    """Run module tests,  for now just doctests only."""
    from crds.tests import test_matches, tstmod
    return tstmod(test_matches)
예제 #13
0
def tst():
    """Run module tests,  for now just doctests only."""
    from crds.tests import test_matches, tstmod    
    return tstmod(test_matches)
예제 #14
0
def main():
    """Run module tests,  for now just doctests only."""
    from crds.tests import test_substitutions, tstmod
    return tstmod(test_substitutions)
예제 #15
0
def main():
    """Run module tests,  for now just doctests only."""
    from crds.tests import test_substitutions, tstmod
    return tstmod(test_substitutions)
예제 #16
0
def main():
    """Run module tests,  for now just doctests only."""
    from crds.tests import test_locking, tstmod
    return tstmod(test_locking)
예제 #17
0
def main():
    """Run module tests,  for now just doctests only."""
    from crds.tests import test_check_archive, tstmod
    return tstmod(test_check_archive)
예제 #18
0
def main():
    """Run module tests,  for now just doctests only."""
    from crds.tests import test_table_effects, tstmod
    return tstmod(test_table_effects)
예제 #19
0
def main():
    """Run module tests,  for now just doctests only."""
    from crds.tests import test_bad_files, tstmod
    return tstmod(test_bad_files)
예제 #20
0
def main():
    """Run module tests,  for now just doctests only."""
    from crds.tests import test_bad_files, tstmod
    return tstmod(test_bad_files)
예제 #21
0
def main():
    """Run module tests,  for now just doctests only."""
    from crds.tests import test_table_effects, tstmod
    return tstmod(test_table_effects)