class WeblateTest < Service::TestCase
  def setup
    @stubs = Faraday::Adapter::Test::Stubs.new
  end

  def test_push
    @stubs.post "/hooks/github/" do |env|
      assert_equal 'weblate.example.org', env[:url].host
      assert_equal 'application/json',
        env[:request_headers]['content-type']
      [200, {}, '']
    end

    svc = service :push,
      {'url' => 'weblate.example.org'}, payload
    svc.receive_push
  end

  def service(*args)
    super Service::Weblate, *args
  end
end

Add testcase for Weblate service
Add testcase for Weblate service
