From 83c3ded0b890d3a56243e5a39833fe61591cc308 Mon Sep 17 00:00:00 2001 From: DucAnh Date: Mon, 26 Jan 2026 12:23:10 +0700 Subject: [PATCH 1/2] Add unit tests for practice --- testing/test_my_practice.py | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 testing/test_my_practice.py diff --git a/testing/test_my_practice.py b/testing/test_my_practice.py new file mode 100644 index 00000000000..02b8f67d16b --- /dev/null +++ b/testing/test_my_practice.py @@ -0,0 +1,8 @@ +import pytest + +def test_basic_math(): + assert 1 + 1 == 2 + +def test_pytest_raises(): + with pytest.raises(ZeroDivisionError): + 1 / 0 From 930de82a696ff7302dcb388a22dff764d8c2e4c6 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 26 Jan 2026 05:26:55 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- testing/test_my_practice.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/testing/test_my_practice.py b/testing/test_my_practice.py index 02b8f67d16b..5cf5cc9eb3c 100644 --- a/testing/test_my_practice.py +++ b/testing/test_my_practice.py @@ -1,8 +1,12 @@ +from __future__ import annotations + import pytest + def test_basic_math(): assert 1 + 1 == 2 + def test_pytest_raises(): with pytest.raises(ZeroDivisionError): 1 / 0