Sign in
android-kvm
/
buildroot
/
5fe4fcdb6439775661e2ff3af66b0b7a43d3c5fb
/
.
/
support
/
testing
/
tests
/
package
/
sample_python_pytest.py
blob: 870cc8512ba4750089970fea24789766ec27d8ee [
file
] [
log
] [
blame
]
import
pytest
x
=
1
@pytest
.
fixture
()
def
f1
():
global
x
x
=
2
yield
15
x
=
3
def
test_1
():
assert
x
==
1
def
test_2
(
f1
):
assert
x
==
2
assert
f1
==
15
def
test_3
():
assert
x
==
3