Example #1
0
def test_unsupported_base_raises(flutter_options):
    project = Project()
    project._snap_meta = Snap(name="test-snap",
                              base="bad-base",
                              confinement="strict")

    with pytest.raises(errors.PluginBaseError):
        flutter.FlutterPlugin("test-part", flutter_options, project)
Example #2
0
def flutter_plugin(tmp_work_path, project, flutter_options):
    """Return an instance of FlutterPlugin setup with different bases."""
    return flutter.FlutterPlugin("test-part", flutter_options, project)