def test_delete_business_active(session): """Assert that the business can be found by name.""" designation = '001' business = Business(legal_name=f'legal_name-{designation}', founding_date=datetime.utcfromtimestamp(0), last_ledger_timestamp=datetime.utcfromtimestamp(0), dissolution_date=None, identifier='CP1234567', tax_id='XX', fiscal_year_end_date=datetime(2001, 8, 5, 7, 7, 58, 272362)) business.save() b = business.delete() assert b.id == business.id
def test_delete_business_with_dissolution(session): """Assert that the business can be found by name.""" designation = '001' business = Business(legal_name=f'legal_name-{designation}', founding_date=datetime.datetime.utcfromtimestamp(0), dissolution_date=datetime.datetime.utcfromtimestamp(0), identifier=f'BC COOP{designation}', tax_id=f'BN0000{designation}', fiscal_year_end_date=datetime.datetime( 2001, 8, 5, 7, 7, 58, 272362)) business.save() b = business.delete() assert b.id == business.id