12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- import math
- import logging
- import pytest
- @pytest.mark.skip
- def test_logging():
- logging.basicConfig(level=logging.DEBUG)
- logging.debug("Debug")
- logging.info("Message info")
- logging.warning("Message Warning")
- logging.error("Message Error")
- logging.critical("Message Critical")
- @pytest.mark.skip
- def test_sqrt():
- num = 25
- assert math.sqrt(num) == 5
- @pytest.mark.skip
- def testsquare():
- num = 7
- assert 7*7 == 49
- @pytest.mark.skip
- def test_greater():
- num = 101
- assert num > 100
- @pytest.mark.skip
- def test_greater_equal():
- num = 100
- assert num >= 100
- @pytest.mark.skip
- def test_less():
- num = 100
- assert num < 200
- @pytest.mark.skip
- def test_equal():
- logging.info("Test Equal")
- num = 100
- assert num == 100
|