From charlesreid1

Revision as of 01:09, 1 February 2019 by Admin (talk | contribs) (Created page with "basic strategy for writing tests: use pytest methods and files named <code>test_</code> or <code>_test</code> will be searched for unit tests when you run pytest on the comma...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

basic strategy for writing tests: use pytest

methods and files named test_ or _test will be searched for unit tests when you run pytest on the command line.

Basic code:

import unittest

class MyTest(unittest.TestCase):
    def __init__(self):
        pass

setup

teardown

test1

test2