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