add test
This commit is contained in:
3
.gitignore
vendored
3
.gitignore
vendored
@@ -1,4 +1,5 @@
|
|||||||
*.DS_Store
|
*.DS_Store
|
||||||
/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
9
tests/test_class_demo.py
Normal 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
|
||||||
Reference in New Issue
Block a user