FactoryBot.define do
	factory :lote_do_contrato, class: 'Licitacao::LoteDoContrato' do
		lote_id {
			Licitacao::Lote.find_or_create_by!( FactoryBot.attributes_for(:licitacao_lote) ).id
		}
		contrato_id {
			Licitacao::Contrato.find_or_create_by!( FactoryBot.attributes_for(:licitacao_contrato) ).id
		}
	end
end
