This commit is contained in:
prisar
2024-01-21 16:31:03 +05:30
parent b966f6485a
commit 7c0e740bd5
2 changed files with 11 additions and 1 deletions

1
.gitignore vendored
View File

@@ -2,3 +2,4 @@
/env /env
build build
dist dist
tests/__pycache__/test_class_demo.cpython-311-pytest-7.4.4.pyc

9
tests/test_class_demo.py Normal file
View File

@@ -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