This commit is contained in:
TriForceX
2021-03-13 22:13:38 -03:00
parent c77595adbd
commit b3ecc6e32d
7043 changed files with 119377 additions and 73694 deletions

View 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