blob: ffb2ef80b42e4fb4b3b03fd70ed737a467150fcd [file] [log] [blame]
# -*- coding: utf-8 -*-
# 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 print_function
from __future__ import division
import sys
from chromite.api import router as router_lib
from chromite.lib import osutils
from chromite.scripts import build_api
assert sys.version_info >= (3, 6), 'This module requires Python 3.6+'
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, '{}')