Skip to content

python unit testing with unittest + unittest.mock library

Notifications You must be signed in to change notification settings

aliaramli/PythonUnitTestingKSMock

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PythonUnitTestingKS

Run the unit testing code from project code root.

Intall the required external librarys

pip install -r requirements.txt

Using command line python -m unittest test_module.TestClass.test_method  ** -m means run library module as a script (terminates option list)

eg

python -m unittest tests.artool.analysis.test_mock_predictor.TestMockPredictorModule test_mock_predict_salary_called

About

python unit testing with unittest + unittest.mock library

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages