From 7c0e740bd54f600a449144865f70c9988b8ceaa5 Mon Sep 17 00:00:00 2001 From: prisar Date: Sun, 21 Jan 2024 16:31:03 +0530 Subject: [PATCH] add test --- .gitignore | 3 ++- tests/test_class_demo.py | 9 +++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 tests/test_class_demo.py diff --git a/.gitignore b/.gitignore index eb5f3ce..97d153d 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ *.DS_Store /env build -dist \ No newline at end of file +dist +tests/__pycache__/test_class_demo.cpython-311-pytest-7.4.4.pyc diff --git a/tests/test_class_demo.py b/tests/test_class_demo.py new file mode 100644 index 0000000..07a1696 --- /dev/null +++ b/tests/test_class_demo.py @@ -0,0 +1,9 @@ +class TestClassDemoInstance: + value = 0 + + def test_one(self): + self.value = 1 + assert self.value == 1 + + def test_two(self): + assert self.value != 1 \ No newline at end of file