You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
376 B
21 lines
376 B
import pytest
|
|
|
|
from factories.finance import BillFactory, InvoiceFactory
|
|
|
|
|
|
@pytest.fixture
|
|
def bill_cash(student, manager):
|
|
"""
|
|
Create bill for the student
|
|
"""
|
|
_bill = BillFactory(
|
|
user=student,
|
|
opener=manager,
|
|
)
|
|
InvoiceFactory(
|
|
status='P',
|
|
method='C',
|
|
yandex_pay=None,
|
|
bill=_bill
|
|
)
|
|
return _bill
|
|
|