dashboard
repositories
activity
search
login
luoshi
/
RK3588_XEN
forked from
~ljy/RK3588_XEN
summary
commits
tree
docs
forks
compare
blame
|
history
|
raw
ubuntu20.04 init
hc
2024-03-25
edb30157bad0c0001c32b854271ace01d3b9a16a
[~luoshi/RK3588_XEN.git]
/
buildroot
/
support
/
testing
/
tests
/
package
/
sample_python_pytest.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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