blob: de3979bb410a9006e6dcc683620e335af3047cb9 [file] [log] [blame]
# Copyright 2019 The Chromium OS Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""Unittests for"""
from __future__ import division
from chromite.api import router as router_lib
from chromite.lib import osutils
from chromite.scripts import build_api
def testSmoke(tmp_path, monkeypatch):
"""Basic sanity check"""
def dummy(*_args, **_kwargs):
return True
monkeypatch.setattr(router_lib.Router, 'Route', dummy)
input_json = tmp_path / 'input.json'
output_json = tmp_path / 'output.json'
osutils.WriteFile(input_json, '{}')