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