# Path: invenio_files_rest/cli.py
# @click.group()
# def files():
#     """File management commands."""


import os
from click.testing import CliRunner
from flask.cli import ScriptInfo
from invenio_files_rest.cli import files as cmd
# -*- coding: utf-8 -*-
#
# This file is part of Invenio.
# Copyright (C) 2016-2019 CERN.
#
# Invenio is free software; you can redistribute it and/or modify it
# under the terms of the MIT License; see LICENSE file for more details.


"""Test CLI."""




def test_simple_workflow(app, db, tmpdir):
    """Run simple workflow."""
    runner = CliRunner()
    script_info = ScriptInfo(create_app=lambda info: app)

    source = os.path.join(os.path.dirname(__file__), 'fixtures', 'source')

    # Create a location to use

# Path: invenio_files_rest/cli.py
# @click.group()
# def files():
#     """File management commands."""


# Path: tests/test_cli.py
import os
from click.testing import CliRunner
from flask.cli import ScriptInfo
from invenio_files_rest.cli import files as cmd

# -*- coding: utf-8 -*-
#
# This file is part of Invenio.
# Copyright (C) 2016-2019 CERN.
#
# Invenio is free software; you can redistribute it and/or modify it
# under the terms of the MIT License; see LICENSE file for more details.


"""Test CLI."""




def test_simple_workflow(app, db, tmpdir):
    """Run simple workflow."""
    runner = CliRunner()
    script_info = ScriptInfo(create_app=lambda info: app)

    source = os.path.join(os.path.dirname(__file__), 'fixtures', 'source')

    # Create a location to use

    result = runner.invoke(cmd, [