<commit_before>require 'test_helper'

class BackgroundTest < Minitest::Test
  include InvoicePrinterHelpers

  def setup
    @invoice = InvoicePrinter::Document.new(default_document_params)
  end

  def test_background_render
    assert_silent do
      InvoicePrinter.render(document: @invoice, background: './examples/background.jpg')
      InvoicePrinter.render(document: @invoice, background: nil)
      InvoicePrinter.render(document: @invoice)
    end
  end

  def test_missing_background_raises_an_exception
    assert_raises(ArgumentError) do
      InvoicePrinter.render(document: @invoice, background: 'missing.jpg')
    end
  end
end<commit_msg>Remove assert_silent call from background test<commit_after>require 'test_helper'

class BackgroundTest < Minitest::Test
  include InvoicePrinterHelpers

  def setup
    @invoice = InvoicePrinter::Document.new(default_document_params)
  end

  def test_background_render
    InvoicePrinter.render(document: @invoice, background: './examples/background.jpg')
    InvoicePrinter.render(document: @invoice, background: nil)
    InvoicePrinter.render(document: @invoice)
  end

  def test_missing_background_raises_an_exception
    assert_raises(ArgumentError) do
      InvoicePrinter.render(document: @invoice, background: 'missing.jpg')
    end
  end
end
{'fraction_non_alphanumeric': 0.07963246554364471, 'fraction_numerical': 0.0, 'mean_word_length': 5.136150234741784, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1272685', 'n_tokens_mistral': 399, 'n_tokens_neox': 388, 'n_words': 79}