github.com/niedbalski/juju@v0.0.0-20190215020005-8ff100488e47/cmd/juju/romulus/budget/export_test.go (about)

     1  // Copyright 2016 Canonical Ltd.
     2  // Licensed under the AGPLv3, see LICENCE file for details.
     3  
     4  package budget
     5  
     6  import (
     7  	"github.com/juju/cmd"
     8  
     9  	"github.com/juju/juju/cmd/modelcmd"
    10  	"github.com/juju/juju/jujuclient"
    11  )
    12  
    13  func NewBudgetCommandForTest(api apiClient, store jujuclient.ClientStore) cmd.Command {
    14  	c := &budgetCommand{api: api}
    15  	c.SetClientStore(store)
    16  	return modelcmd.Wrap(c)
    17  }