Skip to content

Donchuks02/Python_unittest_practice_project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

Python_unittest_practice_project

Project Overview

This project is focused on practicing various test methods available in Python's unittest library. It includes tests designed to explore and demonstrate assertion, and skip decorator by applying them in different scenarios.

Goals

  • To gain hands-on experience with some available unittest methods.
  • To understand when and how to use assertion, and skip decorator effectively.
  • To build a foundational understanding of unit testing in Python.

Project Structure

  • code/assertion_tests_folder/: Includes all test cases, with each assertion type explored individually.
  • code/skip_tests_folder: Include test module to practice unittest.skip decorator.

Assertion Methods Covered

This project covers the following unittest assertion methods:

  • assertEqual()
  • assertNotEqual()
  • assertTrue()
  • assertFalse()
  • assertIs()
  • assertIsNot()
  • assertIsNone()
  • assertIsNotNone()
  • assertIn()
  • assertNotIn()
  • assertIsInstance()
  • assertNotIsInstance()
  • assertAlmostEqual()
  • assertNotAlmostEqual()
  • assertGreater()
  • assertGreaterEqual()
  • assertLess()
  • assertLessEqual()
  • assertRegex()
  • assertNotRegex()
  • assertMultiLineEqual()
  • assertSequenceEqual()
  • assertListEqual()
  • assertTupleEqual()
  • assertSetEqual()
  • assertDictEqual()
  • unittest.skipIf(condition, reason)
  • unittest.skip(reason)

License

This project is open-source and available for educational purposes.


About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages