mirror of
https://github.com/MiyooCFW/buildroot.git
synced 2025-09-27 22:24:19 +03:00
Merge from bittboy/buildroot@26c91a9
This commit is contained in:
25
support/testing/tests/package/sample_python_pytest.py
Normal file
25
support/testing/tests/package/sample_python_pytest.py
Normal file
@@ -0,0 +1,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
|
||||
Reference in New Issue
Block a user