10 lines
168 B
Python
10 lines
168 B
Python
import pytest
|
|
from banking import BankAccount
|
|
|
|
|
|
@pytest.fixture
|
|
def account():
|
|
instance = BankAccount("Alice", 100_000)
|
|
yield instance
|
|
instance.balance = 0
|