Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
Article 'QA in Python - working with unittest'
import unittest
import pyexample_6_module_a
import pyexample_6_module_b
loader = unittest.TestLoader()
suite = loader.loadTestsFromModule(pyexample_6_module_a)
suite.addTests(loader.loadTestsFromModule(pyexample_6_module_b))
runner = unittest.TextTestRunner(verbosity=2)
result = runner.run(suite)
# CLI run options
# - pyexample_6.py
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment